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