interface LocaleAwareInterface

Methods

setLocale(string $locale)

Sets the current locale.

string
getLocale()

Returns the current locale.

Details

setLocale(string $locale)

Sets the current locale.

Parameters

string $locale The locale

Exceptions

InvalidArgumentException If the locale contains invalid characters

string getLocale()

Returns the current locale.

Return Value

string The locale