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