public function toString(\b2\Quote $quote) { if (!$this->cases) { throw new \b2\Exception('IN is empty'); } $call = new Call('IN', $this->cases); return $this->expression->toString($quote) . ' ' . $call->toString($quote); }