languageCode = $definition['language_code']; $this->name = $definition['name']; $this->locale = $definition['locale']; } /** * Returns the string representation of the Language. * * @return string */ public function __toString() { return $this->languageCode; } /** * Gets the two-letter language code. * * @return string */ public function getLanguageCode() { return $this->languageCode; } /** * Gets the language name. * * This value is locale specific. * * @return string */ public function getName() { return $this->name; } /** * Gets the locale. * * The language name is locale specific. * * @return string */ public function getLocale() { return $this->locale; } }