| Total Complexity | 3 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 11 | class PendingDispatch |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * The job. |
||
| 15 | * |
||
| 16 | * @var mixed |
||
| 17 | */ |
||
| 18 | protected $job; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Create a new pending job dispatch. |
||
| 22 | * |
||
| 23 | * @param QueueableJobInterface $job |
||
| 24 | * @return void |
||
| 25 | */ |
||
| 26 | public function __construct(QueueableJobInterface $job) |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Set the desired queue for the job. |
||
| 33 | * |
||
| 34 | * @param string $queue |
||
| 35 | * @return $this |
||
| 36 | */ |
||
| 37 | public function onQueue(string $queue) |
||
| 38 | { |
||
| 39 | $this->job->onQueue($queue); |
||
| 40 | return $this; |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Handle the object's destruction. |
||
| 45 | * |
||
| 46 | * @return void |
||
| 47 | */ |
||
| 48 | public function __destruct() |
||
| 57 | } |
||
| 58 | } |
||
| 59 |