Config
in package
Table of Contents
Methods
- __construct() : mixed
- getAfterEvaluate() : callable
- getBeforeEvaluate() : callable
- getExtension() : array<string|int, mixed>
- setAfterEvaluate() : Config
- $afterEvaluate is a function that is called after the evaluation of an expression.
- setBeforeEvaluate() : Config
- $beforeEvaluate is a function that is called before the evaluation of an expression.
- setExtension() : Config
- $extension is a map of extension name to extension function.
Methods
__construct()
public
__construct() : mixed
getAfterEvaluate()
public
getAfterEvaluate() : callable
Return values
callablegetBeforeEvaluate()
public
getBeforeEvaluate() : callable
Return values
callablegetExtension()
public
getExtension() : array<string|int, mixed>
Return values
array<string|int, mixed>setAfterEvaluate()
$afterEvaluate is a function that is called after the evaluation of an expression.
public
setAfterEvaluate(callable $afterEvaluate) : Config
It has the signature function (EvaluateInput $input, EvaluateOutput $output): void
.
Parameters
- $afterEvaluate : callable
-
callable
Return values
ConfigsetBeforeEvaluate()
$beforeEvaluate is a function that is called before the evaluation of an expression.
public
setBeforeEvaluate(callable $beforeEvaluate) : Config
It has the signature function (EvaluateInput $input): void
.
Parameters
- $beforeEvaluate : callable
-
callable
Return values
ConfigsetExtension()
$extension is a map of extension name to extension function.
public
setExtension(mixed $extension) : Config
Each name must be a string that matches the pattern '^$[_a-zA-Z][_a-zA-Z0-9]$'.
Each function must have the signature function (Path $path, array $args): EvaluateOutput
, where $args is an associated array that maps string keys to Value argument values.
The string keys must be match '^$[_a-zA-Z][_a-zA-Z0-9]$'.
Parameters
- $extension : mixed
-
array<string, callable>