class DeferredCallbackCollection implements ArrayAccess, Countable

Properties

protected DeferredCallback> $callbacks

All of the deferred callbacks.

Methods

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.

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

at line 26
DeferredCallback first()

Get the first callback in the collection.

Return Value

DeferredCallback

at line 36
void invoke()

Invoke the deferred callbacks.

Return Value

void

at line 44
void invokeWhen(Closure|null $when = null)

Invoke the deferred callbacks if the given truth test evaluates to true.

Parameters

Closure|null $when

Return Value

void

at line 77
void forget(string $name)

Remove any deferred callbacks with the given name.

Parameters

string $name

Return Value

void

at line 93
protected DeferredCallbackCollection forgetDuplicates()

Remove any duplicate callbacks.

at line 122
bool offsetExists(mixed $offset)

Determine if the collection has a callback with the given key.

Parameters

mixed $offset

Return Value

bool

at line 132
DeferredCallback|null offsetGet(mixed $offset)

Get the callback with the given key.

Parameters

mixed $offset

Return Value

DeferredCallback|null

at line 142
void offsetSet(mixed $offset, mixed $value)

Set the callback with the given key.

Parameters

mixed $offset
mixed $value

Return Value

void

at line 154
void offsetUnset(mixed $offset)

Remove the callback with the given key from the collection.

Parameters

mixed $offset

Return Value

void

at line 164
int count()

Determine how many callbacks are in the collection.

Return Value

int