public function analyze() { $this->atomIs('Ternary')->outIs('THEN')->atomIs('Integer')->codeIs(array(0, 1))->inIs('THEN')->outIs('ELSE')->codeIs(array(0, 1))->back('first'); $this->prepareQuery(); }