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.
Author: Rolf Vreijdenberger
Inheritance: extends Rule
Show file Open project: rolfvreijdenberger/izzum-statemachine

Public Methods

Method Description
__construct ( Rule $decoree, boolean $supressed_result = false )
_applies ( )

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

_applies() public method

public _applies ( )