/** * @return string */ public function getSentence() { $protoSentence = $this->dictionary->getSentence(); $sentence = preg_replace_callback("/<(\\d)>/u", array($this, "replaceWordToken"), $protoSentence); return $this->UpperCaseFirst($sentence); }