1 | <?php declare(strict_types=1); |
||
13 | final class Mapper |
||
14 | { |
||
15 | /** |
||
16 | * @var array |
||
17 | */ |
||
18 | private $map = []; |
||
19 | |||
20 | /** |
||
21 | * @param string $path |
||
22 | * @param string $namespace |
||
23 | * @return array |
||
24 | */ |
||
25 | 1 | public function map(string $path, string $namespace) |
|
56 | |||
57 | /** |
||
58 | * @param string $command |
||
59 | * @param Reader $reader |
||
60 | * @return string |
||
61 | */ |
||
62 | 3 | public function getJobFromCommand(string $command, Reader $reader) |
|
72 | |||
73 | /** |
||
74 | * @param string $job |
||
75 | * @return bool |
||
76 | */ |
||
77 | 1 | public function hasCommand(string $job) |
|
81 | |||
82 | /** |
||
83 | * @param string $job |
||
84 | * @return mixed |
||
85 | * @throws Exception |
||
86 | */ |
||
87 | 2 | public function getCommand(string $job) |
|
95 | } |
||
96 |