Total Complexity | 5 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Coverage | 16.66% |
Changes | 0 |
1 | <?php |
||
13 | abstract class JobHandler implements HandlerInterface |
||
14 | { |
||
15 | /** |
||
16 | * Default function with method injection. |
||
17 | */ |
||
18 | protected const HANDLE_FUNCTION = 'invoke'; |
||
19 | |||
20 | 3 | public function __construct( |
|
21 | protected InvokerInterface $invoker, |
||
22 | ) { |
||
23 | 3 | } |
|
24 | |||
25 | public function handle(string $name, string $id, mixed $payload, array $headers = []): void |
||
38 | } |
||
39 | } |
||
40 | |||
41 | protected function getHandlerMethod(): string |
||
44 | } |
||
45 | } |
||
46 |