Language Class

Get instance

Get the instance of the Language class:

$language = Language::getInstance();

Clear instance

Clear the instance of the Language class:

$language->clearInstance() : void;

Init

Init the class:

$language->init(string $language) : void;

Get

Get the value from language:

$language->get(string $key) : ?string;

Get array

Get the array from language:

$language->getArray() : array;

Set

Set the value to language:

$language->set(string $key, string|array|null $value) : void;

Load

Load from language path:

$language->load(string|array $path) : void;
Edit on GitHub