| Methods |
public
|
__construct(Closure $closure): void
Creates a new serializable closure instance.
Creates a new serializable closure instance.
|
#
|
public
|
__invoke(): mixed
Resolve the closure with the given arguments.
Resolve the closure with the given arguments.
|
#
|
public
|
getClosure(): Closure
Gets the closure.
|
#
|
public
static
|
unsigned(Closure $closure): UnsignedSerializableClosure
Create a new unsigned serializable closure instance.
Create a new unsigned serializable closure instance.
|
#
|
public
static
|
setSecretKey(string|null $secret): void
Sets the serializable closure secret key.
Sets the serializable closure secret key.
|
#
|
public
static
|
transformUseVariablesUsing(Closure|null $transformer): void
Sets the serializable closure secret key.
Sets the serializable closure secret key.
|
#
|
public
static
|
resolveUseVariablesUsing(Closure|null $resolver): void
Sets the serializable closure secret key.
Sets the serializable closure secret key.
|
#
|
public
|
__serialize(): array{serializable: (Signed|Serializable)}
Get the serializable representation of the closure.
Get the serializable representation of the closure.
|
#
|
public
|
__unserialize(array{serializable: (Signed|Serializable)} $data): void
Restore the closure after serialization.
Restore the closure after serialization.
Throws
|
#
|