interface EelEvaluatorInterface (View source)

An Eel evaluator interface

Methods

mixed
evaluate(string $expression, Context $context)

Evaluate an expression under a given context

Details

mixed evaluate(string $expression, Context $context)

Evaluate an expression under a given context

Parameters

string $expression

The expression to evaluate

Context $context

The context to provide to the expression

Return Value

mixed

The evaluated expression