Total Complexity | 2 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
15 | class Expression extends StorageArray |
||
16 | { |
||
17 | |||
18 | /** |
||
19 | * Key depending on the ExpressionType property. |
||
20 | * |
||
21 | * @var null|string |
||
22 | */ |
||
23 | protected $keyName = null; |
||
24 | |||
25 | /** |
||
26 | * List of supported fields. |
||
27 | * |
||
28 | * @var array |
||
29 | */ |
||
30 | protected $fields = [ |
||
31 | 'value' => null, |
||
32 | ]; |
||
33 | |||
34 | /** |
||
35 | * Returns a key depending on the ExpressionType property. |
||
36 | * |
||
37 | * @return string|null |
||
38 | */ |
||
39 | 4 | public function getKeyName() |
|
42 | } |
||
43 | |||
44 | /** |
||
45 | * Returns the value of an expression depending on the ExpressionType property. |
||
46 | * |
||
47 | * @return mixed |
||
48 | */ |
||
49 | 6 | public function getValue() |
|
54 |