original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Determine if the given command has a handler.
  
  @param mixed $command
  
  @return bool
docstring_tokens: Determine if the given command has a handler .