fluent-community
/
vendor
/
wpfluent
/
framework
/
src
/
WPFluent
/
Database
/
Query
/
Expression.php
Expression.php in FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS & Online Courses 1.0.94, at vendor/wpfluent/framework/src/WPFluent/Database/Query/Expression.php
| 1 | <?php |
| 2 | |
| 3 | namespace FluentCommunity\Framework\Database\Query; |
| 4 | |
| 5 | class Expression |
| 6 | { |
| 7 | |
| 8 | /** |
| 9 | * The value of the expression. |
| 10 | * |
| 11 | * @var mixed |
| 12 | */ |
| 13 | protected $value; |
| 14 | |
| 15 | /** |
| 16 | * Create a new raw query expression. |
| 17 | * |
| 18 | * @param mixed $value |
| 19 | * @return void |
| 20 | */ |
| 21 | public function __construct($value) |
| 22 | { |
| 23 | $this->value = $value; |
| 24 | } |
| 25 | |
| 26 | /** |
| 27 | * Get the value of the expression. |
| 28 | * |
| 29 | * @return mixed |
| 30 | */ |
| 31 | public function getValue() |
| 32 | { |
| 33 | return $this->value; |
| 34 | } |
| 35 | |
| 36 | /** |
| 37 | * Get the value of the expression. |
| 38 | * |
| 39 | * @return string |
| 40 | */ |
| 41 | public function __toString() |
| 42 | { |
| 43 | return (string) $this->getValue(); |
| 44 | } |
| 45 | |
| 46 | } |
| 47 |