PHP Class izzum\rules\ExceptionSupressor
In case the original rule applies succesfully (a true or
false result) the result is passed back to the client.
This rule is an implementation of the Decorator pattern and allows a client
to use rules with a consistent behaviour for exceptions.
Afficher le fichier
Open project: rolfvreijdenberger/izzum-statemachine
Méthodes publiques
Method Details
__construct()
public méthode
public __construct ( Rule $decoree, boolean $supressed_result = false ) |
$decoree |
Rule |
|
$supressed_result |
boolean |
what to return in case the decorated rule
throws an error |
_applies()
public méthode