Exemplo n.º 1
0
 public function visitConcatInfixNode(ConcatInfixNode $node, Collector $collector)
 {
     $collector->append('CONCAT(');
     parent::visit($node->getLeft(), $collector)->append(', ');
     parent::visit($node->getRight(), $collector)->append(')');
     return $collector;
 }
Exemplo n.º 2
0
 protected function maybeVisit($thing, Collector $collector)
 {
     if (!$thing) {
         return $collector;
     }
     $collector->append(' ');
     return $this->visit($thing, $collector);
 }