PHP Класс 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.
Автор: Rolf Vreijdenberger
Автор: Richard Ruiter
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( Rule $rule, string $result )
getResult ( ) : string get the result
getRule ( ) : Rule get the rule for which this result applies

Описание методов

__construct() публичный Метод

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

getResult() публичный Метод

get the result
public getResult ( ) : string
Результат string

getRule() публичный Метод

get the rule for which this result applies
public getRule ( ) : Rule
Результат Rule