Cond = ParseFactory::GetParseElement($options->C, $this); $this->Tr = ParseFactory::GetParseElement($options->Tr, $this); $this->Fa = ParseFactory::GetParseElement($options->Fa, $this); } public function Parse($type = null) { if($this->Cond->Parse()) return $this->Tr->Parse(); else return $this->Fa->Parse(); } }