Ruleset
in package
A collection of rules, parameter definitions and a class of helper functions used to resolve either an endpoint or an error.
Table of Contents
Properties
- $standardLibrary : RulesetStandardLibrary
Methods
- __construct() : mixed
- evaluate() : mixed
- Evaluate the ruleset against the input parameters.
- getParameters() : array<string|int, mixed>
- getRules() : array<string|int, mixed>
- getVersion() : mixed
Properties
$standardLibrary
public
RulesetStandardLibrary
$standardLibrary
Methods
__construct()
public
__construct(array<string|int, mixed> $ruleset, array<string|int, mixed> $partitions) : mixed
Parameters
- $ruleset : array<string|int, mixed>
- $partitions : array<string|int, mixed>
evaluate()
Evaluate the ruleset against the input parameters.
public
evaluate(array<string|int, mixed> $inputParameters) : mixed
Return the first rule the parameters match against.
Parameters
- $inputParameters : array<string|int, mixed>
getParameters()
public
getParameters() : array<string|int, mixed>
Return values
array<string|int, mixed>getRules()
public
getRules() : array<string|int, mixed>
Return values
array<string|int, mixed>getVersion()
public
getVersion() : mixed