Locale
class Locale implements JsonSerializable
Value object encoding a locale.
Methods
__construct(string $code, string $name, string $fallbackCode, bool $default = false)
Locale constructor.
string
getCode()
Returns the locale code
string
getName()
Returns the human readable name
bool
isDefault()
Returns true if this is the default locale for the space.
string
getFallbackCode()
Returns the code of the locale used for for the fallback
object
jsonSerialize()
Returns an object to be used by json_encode
to serialize objects of this class.
Details
at line 46
__construct(string $code, string $name, string $fallbackCode, bool $default = false)
Locale constructor.
at line 61
string
getCode()
Returns the locale code
at line 73
string
getName()
Returns the human readable name
at line 85
bool
isDefault()
Returns true if this is the default locale for the space.
at line 97
string
getFallbackCode()
Returns the code of the locale used for for the fallback
at line 111
object
jsonSerialize()
Returns an object to be used by json_encode
to serialize objects of this class.