SDK for PHP 3.x

EndpointRule extends AbstractRule
in package

A rule within a rule set. All rules contain a conditions property, which can be empty, and documentation about the rule.

Table of Contents

Methods

__construct()  : mixed
evaluate()  : RulesetEndpoint
If all the rule's conditions are met, return the resolved endpoint object.
getConditions()  : array<string|int, mixed>
getDocumentation()  : mixed
getEndpoint()  : array<string|int, mixed>

Methods

__construct()

public __construct(array<string|int, mixed> $definition) : mixed
Parameters
$definition : array<string|int, mixed>

evaluate()

If all the rule's conditions are met, return the resolved endpoint object.

public evaluate(array<string|int, mixed> $inputParameters, RulesetStandardLibrary $standardLibrary) : RulesetEndpoint
Parameters
$inputParameters : array<string|int, mixed>
$standardLibrary : RulesetStandardLibrary
Return values
RulesetEndpoint

| null

getConditions()

public getConditions() : array<string|int, mixed>
Return values
array<string|int, mixed>

getDocumentation()

public getDocumentation() : mixed

getEndpoint()

public getEndpoint() : array<string|int, mixed>
Return values
array<string|int, mixed>
On this page