1: <?php namespace Laravel\Database;
2:
3: class Expression {
4:
5: /**
6: * The value of the database expression.
7: *
8: * @var string
9: */
10: protected $value;
11:
12: /**
13: * Create a new database expression instance.
14: *
15: * @param string $value
16: * @return void
17: */
18: public function __construct($value)
19: {
20: $this->value = $value;
21: }
22:
23: /**
24: * Get the string value of the database expression.
25: *
26: * @return string
27: */
28: public function get()
29: {
30: return $this->value;
31: }
32:
33: /**
34: * Get the string value of the database expression.
35: *
36: * @return string
37: */
38: public function __toString()
39: {
40: return $this->get();
41: }
42:
43: }