Language
Represents a language.
- Full name:
\CommerceGuys\Intl\Language\Language
- This class is marked as final and can't be subclassed
- This class is a Final class
Properties
languageCode
The two-letter language code.
name
The language name.
locale
The locale (i.e. "en-US").
Methods
__construct
Creates a new Language instance.
Parameters:
Parameter | Type | Description |
---|---|---|
$definition |
array | The definition array. |
__toString
Returns the string representation of the Language.
getLanguageCode
Gets the two-letter language code.
getName
Gets the language name.
This value is locale specific.
getLocale
Gets the locale.
The language name is locale specific.
Automatically generated on 2025-03-18