| 1 | <?php |
||
| 6 | final class Condition extends Expression |
||
| 7 | { |
||
| 8 | /** |
||
| 9 | * @var string |
||
| 10 | */ |
||
| 11 | private $condition; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @var array |
||
| 15 | */ |
||
| 16 | private $values; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Condition constructor. |
||
| 20 | * @param string $condition |
||
| 21 | * @param array $values |
||
| 22 | */ |
||
| 23 | protected function __construct(string $condition, array $values = []) |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @inheritDoc |
||
| 31 | */ |
||
| 32 | public function __toString(): string |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @inheritDoc |
||
| 39 | */ |
||
| 40 | public function getValues(): array |
||
| 44 | } |
||
| 45 |