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
$provider
protected
ProviderInterface
$provider
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
stringevaluate()
Evaluate an expression.
public
evaluate(string $condition) : bool
Parameters
- $condition : string
-
The expression to parse