PHP izzum\rules Пространство имен

Interfaces

Имя Описание
IRule specifies an interface for a generic Rule

Классы

Имя Описание
AndRule When a rule is chained using the 'AND' operator both rules given in the constructor should apply.
Closure A Closure rule allows us to easily add logic to a rule by means of an anonymous function.
Exception Exception layer to handle exceptions for rules.
ExceptionOnConstructionRule
ExceptionRule A Rule that always throws an exception
ExceptionSupressor Supresses an exception and returns either true or false in case a concrete rule throws an exception.
FalseRule A Rule that always returns false
NotRule When a rule is chained using the 'NOT' operator the rule given in the constructor should not apply.
OrRule When a rule is chained using the 'OR' operator only one of the rules given in the constructor needs to apply.
Rule Rules are used to encapsulate business rules/logic of the type where you ask a question: 'does this piece of code conform to a specific business rule?'
RuleResult RuleResult contains a result for a certain rule, indicating that the rule wants to store some extra information for a client to consume.
TrueRule A Rule that always returns true
XorRule When a rule is chained using the 'XOR' operator one of the rules given in the constructor should apply.