| Total Complexity | 5 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 19 | final class JobQueue implements QueueInterface |
||
| 20 | { |
||
| 21 | /** @var Queue */ |
||
| 22 | private $queue; |
||
| 23 | |||
| 24 | /** @var JobRegistry */ |
||
| 25 | private $registry; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param RPC $rpc |
||
| 29 | * @param JobRegistry $registry |
||
| 30 | */ |
||
| 31 | public function __construct(RPC $rpc, JobRegistry $registry) |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @param string $jobType |
||
| 39 | * @param array $payload |
||
| 40 | * @param Options|null $options |
||
| 41 | * @return string |
||
| 42 | */ |
||
| 43 | public function push(string $jobType, array $payload = [], Options $options = null): string |
||
| 57 |