| 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 | 1 | public function map(string $path): Mapper |
|
| 41 | |||
| 42 | /** |
||
| 43 | * @param string $command |
||
| 44 | * @param Reader $reader |
||
| 45 | * @return array |
||
| 46 | */ |
||
| 47 | 4 | public function getJobsFromCommand(string $command, Reader $reader): array |
|
| 57 | |||
| 58 | /** |
||
| 59 | * @param string $job |
||
| 60 | * @return bool |
||
| 61 | */ |
||
| 62 | 1 | public function hasCommand(string $job): bool |
|
| 66 | |||
| 67 | /** |
||
| 68 | * @param string $job |
||
| 69 | * @throws Exception |
||
| 70 | * @return string |
||
| 71 | */ |
||
| 72 | 2 | public function getCommand(string $job): string |
|
| 80 | } |
||
| 81 |