1 | <?php |
||
5 | class CommandLauncher |
||
6 | { |
||
7 | /** @var CommandCollector */ |
||
8 | private $commandCollector; |
||
9 | /** @var ArgumentsProcessor */ |
||
10 | private $argumentsProcessor; |
||
11 | |||
12 | /** |
||
13 | * @param CommandCollector $commandCollector |
||
14 | * @param ArgumentsProcessor $argumentsProcessor |
||
15 | */ |
||
16 | public function __construct(CommandCollector $commandCollector, ArgumentsProcessor $argumentsProcessor) |
||
21 | |||
22 | /** |
||
23 | * @param $commandName |
||
24 | * |
||
25 | * @return CommandReflection |
||
26 | * |
||
27 | * @throws CommandDoesNotExist |
||
28 | */ |
||
29 | public function getCommandReflection($commandName) |
||
33 | |||
34 | /** |
||
35 | * @param $commandName |
||
36 | * @param $arguments |
||
37 | * |
||
38 | * @return object |
||
39 | * |
||
40 | * @throws CommandDoesNotExist |
||
41 | */ |
||
42 | public function getCommandToLaunch($commandName, $arguments) |
||
48 | } |
||
49 |