class PendingChain (View source)
| Conditionable |
| mixed | $job | The class name of the job being dispatched. | |
| array | $chain | The jobs to be chained. | |
| string|null | $connection | The name of the connection the chain should be sent to. | |
| string|null | $queue | The name of the queue the chain should be sent to. | |
| DateTimeInterface|DateInterval|int|null | $delay | The number of seconds before the chain should be made available. | |
| array | $catchCallbacks | The callbacks to be executed on failure. |
| $this|TWhenReturnType | when($value = null, callable|null $callback = null, callable|null $default = null)
Apply the callback if the given "value" is (or resolves to) truthy. | from Conditionable |
| $this|TUnlessReturnType | unless($value = null, callable|null $callback = null, callable|null $default = null)
Apply the callback if the given "value" is (or resolves to) falsy. | from Conditionable |
| void | __construct(mixed $job, array $chain)
Create a new PendingChain instance. | |
| $this | onConnection(string|null $connection)
Set the desired connection for the job. | |
| $this | onQueue(string|null $queue)
Set the desired queue for the job. | |
| $this | delay(DateTimeInterface|DateInterval|int|null $delay)
Set the desired delay in seconds for the chain. | |
| $this | catch(callable $callback)
Add a callback to be executed on job failure. | |
| array | catchCallbacks()
Get the "catch" callbacks that have been registered. | |
| PendingDispatch | dispatch()
Dispatch the job chain. | |
| PendingDispatch|null | dispatchIf(bool|Closure $boolean)
Dispatch the job chain if the given truth test passes. | |
| PendingDispatch|null | dispatchUnless(bool|Closure $boolean)
Dispatch the job chain unless the given truth test passes. |
Apply the callback if the given "value" is (or resolves to) truthy.
Apply the callback if the given "value" is (or resolves to) falsy.
Create a new PendingChain instance.
Set the desired connection for the job.
Set the desired queue for the job.
Set the desired delay in seconds for the chain.
Add a callback to be executed on job failure.
Get the "catch" callbacks that have been registered.
Dispatch the job chain.
Dispatch the job chain if the given truth test passes.
Dispatch the job chain unless the given truth test passes.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/11.x/Illuminate/Foundation/Bus/PendingChain.html