|
| __construct (Closure $closure) |
| Creates a new serializable closure instance.
|
|
| __invoke () |
| Resolve the closure with the given arguments.
|
|
| __serialize () |
| Get the serializable representation of the closure.
|
|
| __unserialize ($data) |
| Restore the closure after serialization.
|
|
| getClosure () |
| Gets the closure.
|
|
◆ __construct()
Laravel\SerializableClosure\SerializableClosure::__construct |
( |
Closure | $closure | ) |
|
Creates a new serializable closure instance.
- Parameters
-
- Return values
-
◆ __invoke()
Laravel\SerializableClosure\SerializableClosure::__invoke |
( |
| ) |
|
Resolve the closure with the given arguments.
- Return values
-
◆ __serialize()
Laravel\SerializableClosure\SerializableClosure::__serialize |
( |
| ) |
|
Get the serializable representation of the closure.
- Return values
-
◆ __unserialize()
Laravel\SerializableClosure\SerializableClosure::__unserialize |
( |
| $data | ) |
|
Restore the closure after serialization.
- Parameters
-
- Return values
-
- Exceptions
-
◆ getClosure()
Laravel\SerializableClosure\SerializableClosure::getClosure |
( |
| ) |
|
Gets the closure.
- Return values
-
◆ resolveUseVariablesUsing()
static Laravel\SerializableClosure\SerializableClosure::resolveUseVariablesUsing |
( |
| $resolver | ) |
|
|
static |
Sets the serializable closure secret key.
- Parameters
-
- Return values
-
◆ setSecretKey()
static Laravel\SerializableClosure\SerializableClosure::setSecretKey |
( |
| $secret | ) |
|
|
static |
Sets the serializable closure secret key.
- Parameters
-
- Return values
-
◆ transformUseVariablesUsing()
static Laravel\SerializableClosure\SerializableClosure::transformUseVariablesUsing |
( |
| $transformer | ) |
|
|
static |
Sets the serializable closure secret key.
- Parameters
-
Closure | null | $transformer | |
- Return values
-
◆ unsigned()
static Laravel\SerializableClosure\SerializableClosure::unsigned |
( |
Closure | $closure | ) |
|
|
static |
Create a new unsigned serializable closure instance.
- Parameters
-
- Return values
-
The documentation for this class was generated from the following file:
- lib/laravel/serializable-closure/src/SerializableClosure.php