public static function getCommand($command)
    {
        if (!is_string($command) || strlen($command) < 1) {
            throw new BadMethodCallException('Parameter command is not a valid string');
        }
        $instance = self::getInstance();
        
        if (!isset($instance->commands[$command])) {
            throw new BadMethodCallException('Command "' . $command . '" is not a registered command');
        }
        
        return $instance->commands[$command];
    }
public static function getCommand($command)
    {
        if (!is_string($command) || strlen($command) < 1) {
            throw new BadMethodCallException('Parameter command is not a valid string');
        }
        $instance = self::getInstance();
        
        if (!isset($instance->commands[$command])) {
            throw new BadMethodCallException('Command "' . $command . '" is not a registered command');
        }
        
        return $instance->commands[$command];
    }
public static function getCommand ( $ command ) { if ( ! is_string ( $ command ) || strlen ( $ command ) < 1 ) { throw new BadMethodCallException ( 'Parameter command is not a valid string' ) ; } $ instance = self :: getInstance ( ) ; if ( ! isset ( $ instance -> commands [ $ command ] ) ) { throw new BadMethodCallException ( 'Command "' . $ command . '" is not a registered command' ) ; } return $ instance -> commands [ $ command ] ; }
get command callback

@param string $command

@return array
get command callback