Total Lines | 30 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | interface ExpressionFunctionInterface |
||
9 | { |
||
10 | /** |
||
11 | * Return the name of the function in an expression. |
||
12 | * |
||
13 | * @return string |
||
14 | */ |
||
15 | public function getName(); |
||
16 | |||
17 | /** |
||
18 | * Return a function executed when compiling an expression using the function. |
||
19 | * |
||
20 | * @return closure |
||
21 | */ |
||
22 | public function getCompiler(); |
||
23 | |||
24 | /** |
||
25 | * Return a function executed when the expression is evaluated. |
||
26 | * |
||
27 | * @return closure |
||
28 | */ |
||
29 | public function getEvaluator(); |
||
30 | |||
31 | /** |
||
32 | * Return context variables as an array. |
||
33 | * |
||
34 | * @return array |
||
35 | */ |
||
36 | public function getContextVariables(); |
||
37 | } |
||
38 |