src/SlugGenerator.php
private function getTransliterator(string $rule, string $locale): \Transliterator
	{
		$key = $rule.'|'.$locale;

		if (!isset($this->transliterators[$key])) {
			$this->transliterators[$key] = $this->findMatchingTransliterator($rule, $locale);
		}

		return $this->transliterators[$key];
	}
private function getTransliterator(string $rule, string $locale): \Transliterator
	{
		$key = $rule.'|'.$locale;

		if (!isset($this->transliterators[$key])) {
			$this->transliterators[$key] = $this->findMatchingTransliterator($rule, $locale);
		}

		return $this->transliterators[$key];
	}
private function getTransliterator ( string $ rule , string $ locale ) : \ Transliterator { $ key = $ rule . '|' . $ locale ; if ( ! isset ( $ this -> transliterators [ $ key ] ) ) { $ this -> transliterators [ $ key ] = $ this -> findMatchingTransliterator ( $ rule , $ locale ) ; } return $ this -> transliterators [ $ key ] ; }
Get the Transliterator for the specified transform rule and locale.

@param string $rule
@param string $locale

@return \Transliterator
Get the Transliterator for the specified transform rule and locale .