1 | <?php |
||
4 | class Handler |
||
5 | { |
||
6 | |||
7 | /** |
||
8 | * @var $argv |
||
9 | */ |
||
10 | private $argv; |
||
11 | |||
12 | /** |
||
13 | * @var |
||
14 | */ |
||
15 | private $command; |
||
16 | |||
17 | /** |
||
18 | * |
||
19 | * @var array |
||
20 | */ |
||
21 | private $commands = []; |
||
22 | |||
23 | /** |
||
24 | * @var array |
||
25 | */ |
||
26 | private $input = []; |
||
27 | |||
28 | /** |
||
29 | * @var string |
||
30 | */ |
||
31 | private $output; |
||
32 | |||
33 | public function __construct($argv) |
||
37 | |||
38 | public function addCommand(\Parking\Console\Command\Command $command) |
||
42 | |||
43 | public function dispatch() |
||
52 | |||
53 | public function executeCommand() |
||
57 | |||
58 | public function parseCommand() |
||
70 | |||
71 | protected function parseClassName($name) |
||
75 | |||
76 | protected function parseInput() |
||
80 | |||
81 | protected function getCommand($name) |
||
91 | |||
92 | public function renderCommand() |
||
96 | } |