public function hasCommandHandler($command)
    {
        $class = get_class($command);

        if (isset($this->handlers[$class])) {
            return true;
        }

        $callback = $this->mapper;

        if (!$callback || method_exists($command, 'handle')) {
            return false;
        }

        $this->handlers[$class] = $callback($command);

        return true;
    }
public function hasCommandHandler($command)
    {
        $class = get_class($command);

        if (isset($this->handlers[$class])) {
            return true;
        }

        $callback = $this->mapper;

        if (!$callback || method_exists($command, 'handle')) {
            return false;
        }

        $this->handlers[$class] = $callback($command);

        return true;
    }
public function hasCommandHandler ( $ command ) { $ class = get_class ( $ command ) ; if ( isset ( $ this -> handlers [ $ class ] ) ) { return true ; } $ callback = $ this -> mapper ; if ( ! $ callback || method_exists ( $ command , 'handle' ) ) { return false ; } $ this -> handlers [ $ class ] = $ callback ( $ command ) ; return true ; }
Determine if the given command has a handler.

@param mixed $command

@return bool
Determine if the given command has a handler .