PHP 클래스 izzum\rules\Closure

This provides flexibility to clients that do not want to subclass a Rule but still want to work with the rules library. $rule = new Closure(function ($a, $b) { return $a === $b; }), array(1,2)); $rule->applies();//returns false: 1 is not equal to 2
상속: extends Rule
파일 보기 프로젝트 열기: rolfvreijdenberger/izzum-statemachine 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Closure $closure, mixed[] $arguments = [] )

보호된 메소드들

메소드 설명
_applies ( )

메소드 상세

__construct() 공개 메소드

public __construct ( Closure $closure, mixed[] $arguments = [] )
$closure Closure
$arguments mixed[] an optional array of arguments to pass to the closure

_applies() 보호된 메소드

protected _applies ( )