serialize()
serialize(\Closure $closure) : string
Takes a Closure object, decorates it with a SerializableClosure object, then performs the serialization.
Parameters
\Closure | $closure | Closure to serialize. |
Returns
string —Serialized closure.