PHP Class Hal\Component\BusinessRule\Evaluator

Afficher le fichier Open project: Halleck45/DesignPatternDetector Class Usage Examples

Méthodes publiques

Méthode Description
evaluate ( string $expression, array $variables ) : mixed Business rule engine Usage: BRE('x > 5', ['x' => 6] BRE('x => x > 5', 6]

Private Methods

Méthode Description
hydrates ( Symfony\Component\ExpressionLanguage\ExpressionLanguage $language )

Method Details

evaluate() public méthode

Business rule engine Usage: BRE('x > 5', ['x' => 6] BRE('x => x > 5', 6]
public evaluate ( string $expression, array $variables ) : mixed
$expression string
$variables array
Résultat mixed