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.
Show file
Open project: rolfvreijdenberger/izzum-statemachine
Public Methods
Method Details
__construct()
public method
public __construct ( Rule $decoree, boolean $supressed_result = false ) |
$decoree |
Rule |
|
$supressed_result |
boolean |
what to return in case the decorated rule
throws an error |