PHP Class izzum\rules\OrRule

$rule = new TrueRule(); $chained = $rule->orRule(new FalseRule()); $chained->applies();//true, since true or false is true.
Author: Rolf Vreijdenberger
Author: Richard Ruiter
Inheritance: extends Rule
Show file Open project: rolfvreijdenberger/izzum-statemachine

Public Methods

Method Description
__construct ( Rule $original, Rule $other )
_applies ( )
getResults ( ) : array Merge results
toString ( ) : string

Method Details

__construct() public method

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

_applies() public method

public _applies ( )

getResults() public method

Merge results
public getResults ( ) : array
return array

toString() public method

public toString ( ) : string
return string