Resolver

Class Resolver

Table of Contents

Properties

$expressionLanguageVariables  : array<string|int, mixed>
$expressionLanguage  : ExpressionLanguage
$provider  : ProviderInterface

Methods

__construct()  : mixed
compile()  : string
Compiles an expression source code.
evaluate()  : bool
Evaluate an expression.

Properties

$expressionLanguageVariables

public array<string|int, mixed> $expressionLanguageVariables = []

$expressionLanguage

protected ExpressionLanguage $expressionLanguage

Methods

__construct()

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

compile()

Compiles an expression source code.

public compile(string $condition) : string
Parameters
$condition : string

The expression to compile

Return values
string

evaluate()

Evaluate an expression.

public evaluate(string $condition) : bool
Parameters
$condition : string

The expression to parse

Return values
bool

        
On this page

Search results