PHP 클래스 izzum\rules\OrRule

$rule = new TrueRule(); $chained = $rule->orRule(new FalseRule()); $chained->applies();//true, since true or false is true.
저자: Rolf Vreijdenberger
저자: Richard Ruiter
상속: extends Rule
파일 보기 프로젝트 열기: rolfvreijdenberger/izzum-statemachine

공개 메소드들

메소드 설명
__construct ( Rule $original, Rule $other )
_applies ( )
getResults ( ) : array Merge results
toString ( ) : string

메소드 상세

__construct() 공개 메소드

public __construct ( Rule $original, Rule $other )
$original Rule
$other Rule

_applies() 공개 메소드

public _applies ( )

getResults() 공개 메소드

Merge results
public getResults ( ) : array
리턴 array

toString() 공개 메소드

public toString ( ) : string
리턴 string