class Expressible implements ExpressibleInterface
{
+ /**
+ * @var string
+ */
+ protected $name;
+
/**
* @var mixed
*/
protected $data;
- function __construct($data) {
+ /**
+ * @param string $name
+ * @param mixed $data
+ */
+ function __construct($name, $data) {
+ $this->name = $name;
$this->data = $data;
}
} elseif (!isset($op) && is_numeric($data)) {
$this->data->add(new Expr("+ $data"));
} else {
- $data = $this->row->getTable()->getConnection()->quote($data);
$this->data->add(new Expr("%s %s", isset($op) ? $op : "||", $data));
}
return $this;
- }
-}
\ No newline at end of file
+ }
+}