Total Complexity | 3 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
6 | class CommandCollection |
||
7 | { |
||
8 | /** |
||
9 | * @var array |
||
10 | */ |
||
11 | private $commands; |
||
12 | |||
13 | /** |
||
14 | * CommandCollection constructor. |
||
15 | */ |
||
16 | public function __construct() |
||
19 | } |
||
20 | |||
21 | /** |
||
22 | * @param \Symfony\Component\Console\Command\Command $command |
||
23 | */ |
||
24 | public function addCommand(\Symfony\Component\Console\Command\Command $command) |
||
25 | { |
||
26 | $this->commands[] = $command; |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * @return array |
||
31 | */ |
||
32 | public function getCommands(): array |
||
35 | } |
||
36 | } |