1 | <?php declare(strict_types=1); |
||
12 | final class Mapper implements MapperInterface |
||
13 | { |
||
14 | /** |
||
15 | * @var array |
||
16 | */ |
||
17 | private $map = []; |
||
18 | |||
19 | /** |
||
20 | * @param string $path |
||
21 | * @return Mapper |
||
22 | */ |
||
23 | public function map(string $path): Mapper |
||
41 | 1 | ||
42 | /** |
||
43 | 1 | * @param string $command |
|
44 | * @param Reader $reader |
||
45 | * @return array |
||
46 | */ |
||
47 | 1 | public function getJobsFromCommand(string $command, Reader $reader): array |
|
57 | |||
58 | 1 | /** |
|
59 | * @param string $job |
||
60 | * @return bool |
||
61 | */ |
||
62 | public function hasCommand(string $job): bool |
||
66 | 4 | ||
67 | /** |
||
68 | 4 | * @param string $job |
|
69 | * @throws Exception |
||
70 | 4 | * @return string |
|
71 | 1 | */ |
|
72 | public function getCommand(string $job): string |
||
80 | } |
||
81 |