| 1 | <?php |
||
| 7 | class Definition |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var \Symfony\Component\Console\Command\Command[] $commands |
||
| 11 | */ |
||
| 12 | private $commands; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @param \Symfony\Component\Console\Command\Command[] $commands |
||
| 16 | */ |
||
| 17 | 6 | public function __construct(array $commands = array()) |
|
| 22 | |||
| 23 | /** |
||
| 24 | * @param \Symfony\Component\Console\Command\Command $command |
||
| 25 | * @return self |
||
| 26 | */ |
||
| 27 | 3 | public function addCommand(Command $command) |
|
| 33 | |||
| 34 | /** |
||
| 35 | * @param \Symfony\Component\Console\Command\Command[] $commands |
||
| 36 | * @return self |
||
| 37 | */ |
||
| 38 | 6 | public function addCommands(array $commands) |
|
| 46 | |||
| 47 | /** |
||
| 48 | * @return \Symfony\Component\Console\Command\Command[] |
||
| 49 | */ |
||
| 50 | 4 | public function getCommands() |
|
| 54 | } |
||
| 55 |