DeferredCallbackCollection
class DeferredCallbackCollection implements ArrayAccess, Countable (View source)
Properties
protected array | $callbacks | All of the deferred callbacks. |
Methods
callable
first()
Get the first callback in the collection.
void
invoke()
Invoke the deferred callbacks.
void
invokeWhen(Closure|null $when = null)
Invoke the deferred callbacks if the given truth test evaluates to true.
void
forget(string $name)
Remove any deferred callbacks with the given name.
forgetDuplicates()
Remove any duplicate callbacks.
bool
offsetExists(mixed $offset)
Determine if the collection has a callback with the given key.
mixed
offsetGet(mixed $offset)
Get the callback with the given key.
void
offsetSet(mixed $offset, mixed $value)
Set the callback with the given key.
void
offsetUnset(mixed $offset)
Remove the callback with the given key from the collection.
int
count()
Determine how many callbacks are in the collection.
Details
void
invokeWhen(Closure|null $when = null)
Invoke the deferred callbacks if the given truth test evaluates to true.