/** * @param array ...$args * * @return $this */ public function with(...$args) { foreach ($args as $arg) { $this->addArgument(Node::buildQuoted($arg)); } return $this; }
public function take($limit) { if ($limit) { $this->getTree()->setLimit(new LimitNode(Node::buildQuoted($limit))); } else { $this->getTree()->setLimit(null); } return $this; }
private function quote($other) { return Node::buildQuoted($other, $this); }
public function lower($column) { return new NamedFunctionNode('LOWER', [Node::buildQuoted($column)]); }
/** * @param mixed $expression * * @return $this */ public function else($expression) : CaseNode { $this->default = new ElseNode(Node::buildQuoted($expression)); return $this; }
private function _quote($other) { return Node::buildQuoted($other); }
public function key($key) { $this->getTree()->setKey(Node::buildQuoted($key)); return $this; }