Magestead\Command\PhpspecCommand::getCommand PHP Метод

getCommand() защищенный Метод

protected getCommand ( Config $config, $option ) : boolean | string
$config Magestead\Helper\Config
$option
Результат boolean | string
    protected function getCommand(Config $config, $option)
    {
        $type = $config->type;
        switch ($type) {
            case 'magento':
                return "cd /var/www;bin/phpspec {$option}";
                break;
            case 'magento2':
                return "cd /var/www/public;bin/phpspec {$option}";
                break;
        }
        return false;
    }