| 1 | <?php |
||
| 17 | class CommandParserChain implements CommandParserInterface |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @var CommandParserInterface[] |
||
| 21 | */ |
||
| 22 | private $parsers = []; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param CommandParserInterface[] $parsers |
||
| 26 | */ |
||
| 27 | 5 | public function __construct(array $parsers) |
|
| 31 | |||
| 32 | /** |
||
| 33 | * {@inheritdoc} |
||
| 34 | */ |
||
| 35 | 2 | public function parse(InputInterface $input, OutputInterface $output) |
|
| 43 | |||
| 44 | /** |
||
| 45 | * {@inheritdoc} |
||
| 46 | */ |
||
| 47 | 2 | public function execute(InputInterface $input, OutputInterface $output) |
|
| 55 | |||
| 56 | /** |
||
| 57 | * {@inheritdoc} |
||
| 58 | */ |
||
| 59 | 1 | public function supports() |
|
| 63 | } |
||
| 64 |