| Total Complexity | 3 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | class ValueOperator extends BaseOperator |
||
| 22 | {
|
||
| 23 | /** |
||
| 24 | * Value which will be returned. |
||
| 25 | * |
||
| 26 | * @var mixed |
||
| 27 | */ |
||
| 28 | public $value; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Evaluates one value. |
||
| 32 | * |
||
| 33 | * @param ValueParser $value Value to be evaluated |
||
| 34 | * @return mixed Evaluation result |
||
| 35 | */ |
||
| 36 | 11 | public function evaluate(ValueParser $value) |
|
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Passes data from operator configuration. |
||
| 43 | * |
||
| 44 | * Depending on the operator this data can contain other sub-expressions which need to be parsed using |
||
| 45 | * ExpressionParser |
||
| 46 | * |
||
| 47 | * @param array $config Expressions to be processed |
||
| 48 | * @see ExpressionParser |
||
| 49 | */ |
||
| 50 | 15 | public function configure(array $config) |
|
| 59 | } |
||
| 60 | } |