| Total Complexity | 3 |
| Total Lines | 49 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class DatabaseQueue extends \Illuminate\Queue\DatabaseQueue |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Overrides default method to inject `tenant_id`. |
||
| 12 | * |
||
| 13 | * @param string|null $queue |
||
| 14 | * @param string $payload |
||
| 15 | * @param int $availableAt |
||
| 16 | * @param int $attempts |
||
| 17 | * |
||
| 18 | * @return array |
||
| 19 | */ |
||
| 20 | protected function buildDatabaseRecord($queue, $payload, $availableAt, $attempts = 0) |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Overrides default method to use my own DatabaseJob. |
||
| 41 | * |
||
| 42 | * @param string $queue |
||
| 43 | * @param \Illuminate\Queue\Jobs\DatabaseJobRecord $job |
||
| 44 | * |
||
| 45 | * @return DatabaseJob|\Illuminate\Queue\Jobs\DatabaseJob |
||
| 46 | */ |
||
| 47 | protected function marshalJob($queue, $job) |
||
| 60 |