| Total Complexity | 1 |
| Total Lines | 53 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | class ExpressionType extends Expression |
||
| 16 | { |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Scheme column. |
||
| 20 | */ |
||
| 21 | const SCHEMA_COLUMN = 0; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Function. |
||
| 25 | */ |
||
| 26 | const FUNCTION = 1; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Parameter. |
||
| 30 | */ |
||
| 31 | const PARAMETER = 2; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Subquery. |
||
| 35 | */ |
||
| 36 | const SUB_QUERY = 3; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Arithmetic operation. |
||
| 40 | */ |
||
| 41 | const ARITHMETIC_OPERATION = 4; |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Key depending on the ExpressionType property. |
||
| 45 | * |
||
| 46 | * @var string |
||
| 47 | */ |
||
| 48 | protected $keyName = 'ExpressionType'; |
||
| 49 | |||
| 50 | /** |
||
| 51 | * List of supported fields. |
||
| 52 | * |
||
| 53 | * @var array |
||
| 54 | */ |
||
| 55 | protected $fields = [ |
||
| 56 | 'value' => self::PARAMETER, |
||
| 57 | ]; |
||
| 58 | |||
| 59 | /** |
||
| 60 | * Sets the input values. |
||
| 61 | * |
||
| 62 | * @param string $value Expression type. |
||
| 63 | */ |
||
| 64 | 3 | public function __construct($value) |
|
| 71 |