1 | <?php |
||
17 | class JobResolver implements JobResolverInterface |
||
18 | { |
||
19 | /** |
||
20 | * @var JobInterface[] |
||
21 | */ |
||
22 | private $jobs = []; |
||
23 | |||
24 | /** |
||
25 | * Resolve the given class. |
||
26 | * |
||
27 | * @param string $id |
||
28 | * |
||
29 | * @return JobInterface |
||
30 | */ |
||
31 | public function resolve(string $id): JobInterface |
||
39 | |||
40 | /** |
||
41 | * @inheritDoc |
||
42 | * |
||
43 | * @param string $id |
||
44 | * @param JobInterface $job |
||
45 | */ |
||
46 | public function addJob(string $id, JobInterface $job) |
||
50 | } |
||
51 |