PHP Class XPSPL\SIG\complex\Func
Allows for performing complex signal processing using \\Closures and callable
PHP variables provided in the construct.
A
\\Closure can be rebound into the Func object context on construct which
allows maintaining variables across emits.
This object was created for use in the API.
Mostra file
Open project: prggmr/xpspl
Protected Properties
Public Methods
Method Details
__construct()
public method
Constructs a Func object.
Allows for rebinding a \\Closure to the Func object context for
maintaining variables across emits.
public __construct ( callable $function, boolean $rebind_context = false ) |
$function |
callable |
Callable variable to use for evaluation. |
$rebind_context |
boolean |
Rebind the given closures context to
this object. |
Evaluates the emitted signal by calling the $_evaluate_func function.
Property Details
$_function protected_oe property
Function to evaluate the emitting signal.
protected callable $_function |
return |
callable |
|