class SerializableClosure extends SerializableClosure (View source)

Extends SuperClosure for backwards compatibility.

Properties

protected string $code

The code for the closure

protected array $variables

The variables that were "used" or imported from the parent scope

Methods

string
getCode()

Returns the code of the closure being serialized

array
getVariables()

Returns the "used" variables of the closure being serialized

determineCodeAndVariables()

Uses the serialize method directly to lazily fetch the code and variables if needed

Details

string getCode()

Returns the code of the closure being serialized

Return Value

string

array getVariables()

Returns the "used" variables of the closure being serialized

Return Value

array

protected determineCodeAndVariables()

Uses the serialize method directly to lazily fetch the code and variables if needed