Files
n98-magerun2/src/N98/Magento/Command/SubCommand/AbstractSubCommand.php
T
Tom Klingenberg bdebdb1753 [FIX] WS fixes
- no newline at the end of file
2015-11-11 01:18:16 +01:00

89 lines
1.6 KiB
PHP

<?php
namespace N98\Magento\Command\SubCommand;
use N98\Magento\Command\AbstractMagentoCommand;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
abstract class AbstractSubCommand implements SubCommandInterface
{
/**
* @var ConfigBag
*/
protected $config;
/**
* @var array
*/
protected $commandConfig;
/**
* @var InputInterface
*/
protected $input;
/**
* @var OutputInterface
*/
protected $output;
/**
* @var AbstractMagentoCommand
*/
protected $command;
/**
* @param ConfigBag $config
*/
public function setConfig(ConfigBag $config)
{
$this->config = $config;
}
/**
* @param array $commandConfig
*/
public function setCommandConfig(array $commandConfig)
{
$this->commandConfig = $commandConfig;
}
/**
* @param InputInterface $input
*/
public function setInput(InputInterface $input)
{
$this->input = $input;
}
/**
* @param OutputInterface $output
*/
public function setOutput(OutputInterface $output)
{
$this->output = $output;
}
/**
* @return AbstractMagentoCommand
*/
public function getCommand()
{
return $this->command;
}
/**
* @param AbstractMagentoCommand $command
*/
public function setCommand(AbstractMagentoCommand $command)
{
$this->command = $command;
}
/**
* @return bool
*/
abstract public function execute();
}