/** * @param string $string * * @return string * * @throws TransliterateException */ public function transliterate($string) { $string = $this->transliterator->transliterate($string); if ($string === false) { throw new TransliterateException($this->transliterator->getErrorMessage(), $this->transliterator->getErrorCode()); } return $string; }