Class Ruleset
A collection of rules, parameter definitions and a class of helper functions used to resolve either an endpoint or an error.
Methods Summary
- __construct ( array $ruleset, array $partitions )
- getVersion ( )
- getParameters ( )
- getRules ( )
-
evaluate ( array $inputParameters )
Evaluate the ruleset against the input parameters. Return the first rule the parameters match against.
Methods Details
__construct ( array $ruleset, array $partitions )
mixed getVersion ( )
Returns
mixed |
array getParameters ( )
Returns
array |
array getRules ( )
Returns
array |
mixed evaluate ( array $inputParameters )
Evaluate the ruleset against the input parameters. Return the first rule the parameters match against.
Returns
mixed |