protected function compileCode(&$code) { $code .= '('; $this->condition->compileCode($code); $code .= ' ? '; if ($this->ifTrue !== null) { $this->ifTrue->compileCode($code); } $code .= ' : '; $this->ifFalse->compileCode($code); $code .= ')'; }