/** * @param \Translator\String $string * @return void */ public function setTranslationValue($string) { if (!array_key_exists($string->ns(), $this->translations)) { $this->translations[$string->ns()] = array(); } $this->translations[$string->ns()][$string->key()] = strval($string); }