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