Grammars
2 weeks ago
Processors
2 years ago
Builder.php
2 weeks ago
Expression.php
2 years ago
IndexHint.php
2 weeks ago
JoinClause.php
2 years ago
Expression.php
43 lines
| 1 | <?php |
| 2 | |
| 3 | namespace IAWPSCOPED\Illuminate\Database\Query; |
| 4 | |
| 5 | /** @internal */ |
| 6 | class Expression |
| 7 | { |
| 8 | /** |
| 9 | * The value of the expression. |
| 10 | * |
| 11 | * @var mixed |
| 12 | */ |
| 13 | protected $value; |
| 14 | /** |
| 15 | * Create a new raw query expression. |
| 16 | * |
| 17 | * @param mixed $value |
| 18 | * @return void |
| 19 | */ |
| 20 | public function __construct($value) |
| 21 | { |
| 22 | $this->value = $value; |
| 23 | } |
| 24 | /** |
| 25 | * Get the value of the expression. |
| 26 | * |
| 27 | * @return mixed |
| 28 | */ |
| 29 | public function getValue() |
| 30 | { |
| 31 | return $this->value; |
| 32 | } |
| 33 | /** |
| 34 | * Get the value of the expression. |
| 35 | * |
| 36 | * @return string |
| 37 | */ |
| 38 | public function __toString() |
| 39 | { |
| 40 | return (string) $this->getValue(); |
| 41 | } |
| 42 | } |
| 43 |