protected function getCommand(Config $config) { $type = $config->type; switch ($type) { case 'magento2': return "cd /var/www/public;bin/magento indexer:status"; } return false; }