12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <?php namespace Laravel\Database;
- class Expression {
- /**
- * The value of the database expression.
- *
- * @var string
- */
- protected $value;
- /**
- * Create a new database expression instance.
- *
- * @param string $value
- * @return void
- */
- public function __construct($value)
- {
- $this->value = $value;
- }
- /**
- * Get the string value of the database expression.
- *
- * @return string
- */
- public function get()
- {
- return $this->value;
- }
- /**
- * Get the string value of the database expression.
- *
- * @return string
- */
- public function __toString()
- {
- return $this->get();
- }
- }
|