Sentences = []; foreach ($this->Options->d as $sentence) $this->Sentences[] = FRFactory::GetFRElement($sentence, $this); } public function Parse() { $result = null; foreach ($this->Sentences as $currentSentence) { $result = $currentSentence->Parse(); if ($this->ShouldReturn) break; } return $result; } public function ReturnWasExecuted() { $this->ShouldReturn = true; FRUtilities::NotifyReturnToParent($this); } }