PHP 클래스 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.
파일 보기
프로젝트 열기: prggmr/xpspl
보호된 프로퍼티들
공개 메소드들
메소드 상세
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.
프로퍼티 상세
Function to evaluate the emitting signal.
protected callable $_function |
리턴 |
callable |
|