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
Afficher le fichier Open project: rolfvreijdenberger/izzum-statemachine Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

getResult() public méthode

get the result
public getResult ( ) : string
Résultat string

getRule() public méthode

get the rule for which this result applies
public getRule ( ) : Rule
Résultat Rule