| 1 |
<?php namespace WpFluent\QueryBuilder; |
| 2 |
|
| 3 |
class Raw |
| 4 |
{ |
| 5 |
|
| 6 |
/** |
| 7 |
* @var string |
| 8 |
*/ |
| 9 |
protected $value; |
| 10 |
|
| 11 |
/** |
| 12 |
* @var array |
| 13 |
*/ |
| 14 |
protected $bindings; |
| 15 |
|
| 16 |
public function __construct($value, $bindings = array()) |
| 17 |
{ |
| 18 |
$this->value = (string)$value; |
| 19 |
$this->bindings = (array)$bindings; |
| 20 |
} |
| 21 |
|
| 22 |
public function getBindings() |
| 23 |
{ |
| 24 |
return $this->bindings; |
| 25 |
} |
| 26 |
|
| 27 |
/** |
| 28 |
* @return string |
| 29 |
*/ |
| 30 |
public function __toString() |
| 31 |
{ |
| 32 |
return (string) $this->value; |
| 33 |
} |
| 34 |
} |
| 35 |
|