protected function getCustomCommandName($commandClass)
    {
        if (!class_exists($commandClass)) {
            throw new ConfigurationException("Extension: Command class $commandClass not found");
        }

        $interfaces = class_implements($commandClass);

        if (!in_array('Codeception\CustomCommandInterface', $interfaces)) {
            throw new ConfigurationException("Extension: Command {$commandClass} must implement " .
                                             "the interface `Codeception\\CustomCommandInterface`");
        }

        return $commandClass::getCommandName();
    }
protected function getCustomCommandName($commandClass)
    {
        if (!class_exists($commandClass)) {
            throw new ConfigurationException("Extension: Command class $commandClass not found");
        }

        $interfaces = class_implements($commandClass);

        if (!in_array('Codeception\CustomCommandInterface', $interfaces)) {
            throw new ConfigurationException("Extension: Command {$commandClass} must implement " .
                                             "the interface `Codeception\\CustomCommandInterface`");
        }

        return $commandClass::getCommandName();
    }
protected function getCustomCommandName ( $ commandClass ) { if ( ! class_exists ( $ commandClass ) ) { throw new ConfigurationException ( "Extension: Command class $commandClass not found" ) ; } $ interfaces = class_implements ( $ commandClass ) ; if ( ! in_array ( 'Codeception\CustomCommandInterface' , $ interfaces ) ) { throw new ConfigurationException ( "Extension: Command {$commandClass} must implement " . "the interface `Codeception\\CustomCommandInterface`" ) ; } return $ commandClass :: getCommandName ( ) ; }
Validate and get the name of the command

@param CustomCommandInterface $commandClass

@throws ConfigurationException

@return string
Validate and get the name of the command