| Total Complexity | 2 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 9 | class JobProducer implements Producer |
||
| 10 | { |
||
| 11 | private Context $context; |
||
| 12 | |||
| 13 | 2 | public function __construct(Context $context) |
|
| 14 | { |
||
| 15 | 2 | $this->context = $context; |
|
| 16 | 2 | } |
|
| 17 | |||
| 18 | /*** |
||
| 19 | * @param Job $job |
||
| 20 | * @throws \Interop\Queue\Exception |
||
| 21 | * @throws \Interop\Queue\Exception\InvalidDestinationException |
||
| 22 | * @throws \Interop\Queue\Exception\InvalidMessageException |
||
| 23 | * @throws \JsonException |
||
| 24 | */ |
||
| 25 | 1 | public function enqueue(Job $job): void |
|
| 30 | 1 | } |
|
| 31 | } |
||
| 32 |