| Total Complexity | 3 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class ConsoleFacade implements ConsoleFacadeInterface |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var \Jellyfish\Console\ConsoleFactory |
||
| 11 | */ |
||
| 12 | protected $factory; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @param \Jellyfish\Console\ConsoleFactory $factory |
||
| 16 | */ |
||
| 17 | public function __construct(ConsoleFactory $factory) |
||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param \Symfony\Component\Console\Command\Command $command |
||
| 24 | * @return \Jellyfish\Console\ConsoleFacadeInterface |
||
| 25 | */ |
||
| 26 | public function addCommand(Command $command): ConsoleFacadeInterface |
||
| 27 | { |
||
| 28 | $this->factory->getCommandList()->append($command); |
||
| 29 | |||
| 30 | return $this; |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @return \Symfony\Component\Console\Command\Command[] |
||
| 35 | */ |
||
| 36 | public function getCommands(): array |
||
| 39 | } |
||
| 40 | } |
||
| 41 |