Class Closure
Interface to PHP native Closure instances. Embeds a Closure instance (aka lambda function) and provides an extended user interface including code and parameter retrieval and serialisation.
- Core\Object implements Core\Chainable
-
Core\Set
implements
Core\Accessor
-
Core\Closure
Methods summary
public
|
#
__construct( $closure, array $args = null )
Initialises the |
public
mixed
|
|
public
string[]
|
|
public
|
|
public
|
|
public
string|false
|
|
public
string[]|false
|
Methods inherited from Core\Object
__autocreateFactory(),
__call(),
__processParameters(),
__toString(),
attachMethod(),
chain(),
getValueForKey(),
getValueForKeyPath(),
getValueForUndefinedKey(),
hash(),
issetValueForKey(),
setValueForKey(),
setValueForKeyPath(),
setValueForUndefinedKey(),
uuid()
Constants summary
Constants inherited from Core\Object
AnyParameterType,
AutochainParameterType,
AutocreateParameterType,
BooleanParameterType,
CharParameterType,
EnumParameterType,
IntegerParameterType,
RealParameterType,
StringParameterType,
UserParameterType
Properties summary
protected
array
|
$_v_arguments
Array of bound arguments. |
|
protected
|
$_v_closure
The embedded closure. |
|
protected
|
$_rf
The reflection function instance of the embedded closure. |
|
protected
string
|
$_sourceCode
Source code buffer. |
|
protected
array
|
$_usedVariables
Used variables buffer. |
Magic properties
public read-only
array
|
$arguments
Array of bound arguments. |
public read-only
|
$closure
The embedded closure. |
public read-only
string|false
|
$sourceCode
PHP source code of the embedded closure. |