PHP Class izzum\rules\RuleResult

This could be when there are multiple steps or paths in rule execution and the client wants to know which one of those were executed after a rule->applies() call has been made. This will most probably happen in a rule where multipe business rules are combined or where there are multiple conditional paths.
Author: Rolf Vreijdenberger
Author: Richard Ruiter
Show file Open project: rolfvreijdenberger/izzum-statemachine Class Usage Examples

Public Methods

Method Description
__construct ( Rule $rule, string $result )
getResult ( ) : string get the result
getRule ( ) : Rule get the rule for which this result applies

Method Details

__construct() public method

public __construct ( Rule $rule, string $result )
$rule Rule
$result string

getResult() public method

get the result
public getResult ( ) : string
return string

getRule() public method

get the rule for which this result applies
public getRule ( ) : Rule
return Rule