public function getHandler()
    {
        if (!$this->handler) {
            return $this->getDefaultHandler();
        }

        if (is_callable($this->handler)) {
            $this->handler = call_user_func($this->handler);
        }

        return $this->handler;
    }
public function getHandler()
    {
        if (!$this->handler) {
            return $this->getDefaultHandler();
        }

        if (is_callable($this->handler)) {
            $this->handler = call_user_func($this->handler);
        }

        return $this->handler;
    }
public function getHandler ( ) { if ( ! $ this -> handler ) { return $ this -> getDefaultHandler ( ) ; } if ( is_callable ( $ this -> handler ) ) { $ this -> handler = call_user_func ( $ this -> handler ) ; } return $ this -> handler ; }
Returns the command handler to execute when a command is run.

@return object The command handler.

@see setHandler()
Returns the command handler to execute when a command is run .