protected function resolveHookCommand(CommandHookInterface $command_hook)
    {
        $command = null;

        switch ($command_hook->getType()) {
            case 'raw':
                $command = $command_hook->getCommand();
                break;
            case 'engine':
                $command = $this->getEngineCommand($command_hook);
                break;
            case 'project':
                $command = $this->getProjectCommand($command_hook);
                break;
        }

        return isset($command) ? $command : false;
    }
protected function resolveHookCommand(CommandHookInterface $command_hook)
    {
        $command = null;

        switch ($command_hook->getType()) {
            case 'raw':
                $command = $command_hook->getCommand();
                break;
            case 'engine':
                $command = $this->getEngineCommand($command_hook);
                break;
            case 'project':
                $command = $this->getProjectCommand($command_hook);
                break;
        }

        return isset($command) ? $command : false;
    }
protected function resolveHookCommand ( CommandHookInterface $ command_hook ) { $ command = null ; switch ( $ command_hook -> getType ( ) ) { case 'raw' : $ command = $ command_hook -> getCommand ( ) ; break ; case 'engine' : $ command = $ this -> getEngineCommand ( $ command_hook ) ; break ; case 'project' : $ command = $ this -> getProjectCommand ( $ command_hook ) ; break ; } return isset ( $ command ) ? $ command : false ; }
Resolve hook command.

@param CommandHookInterface $command_hook
The command hook object.

@return bool|CommandBuilder
Resolve hook command .