1 | <?php |
||
7 | class JobRunnerRegistry |
||
8 | { |
||
9 | /** |
||
10 | * @var array |
||
11 | */ |
||
12 | protected $jobRunners = []; |
||
13 | |||
14 | /** |
||
15 | * @param array $jobRunners |
||
16 | */ |
||
17 | 1 | public function register(array $jobRunners): void |
|
23 | |||
24 | /** |
||
25 | * @param string $jobName |
||
26 | * @return JobRunner |
||
27 | * @throws JobRunnerNotRegisteredException |
||
28 | */ |
||
29 | public function get(string $jobName): JobRunner |
||
37 | } |
||
38 |