public static function hasCommand($command)
    {
        if (!is_string($command) || strlen($command) < 1) {
            throw new BadMethodCallException('Parameter command is not a valid string');
        }
        $instance = self::getInstance();

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

        return isset($instance->commands[$command]);
    }
public static function hasCommand ( $ command ) { if ( ! is_string ( $ command ) || strlen ( $ command ) < 1 ) { throw new BadMethodCallException ( 'Parameter command is not a valid string' ) ; } $ instance = self :: getInstance ( ) ; return isset ( $ instance -> commands [ $ command ] ) ; }
command registry has command

@param string $command

@return boolean
command registry has command