Translator
in package
Uses
StaticTrait
Table of Contents
- $instance : mixed
- Instance object.
- __callStatic() : mixed
- Add support for magic static method calls.
- _i() : mixed
- _instance() : mixed
- instance() : mixed
- Set/get a instance of object.
- t() : string
- trans() : string
Properties
$instance
Instance object.
protected
static mixed
$instance
Methods
__callStatic()
Add support for magic static method calls.
public
static __callStatic(mixed $method, array<string|int, mixed> $arguments) : mixed
Parameters
- $method : mixed
- $arguments : array<string|int, mixed>
Return values
mixed —the returned value from the resolved method
_i()
public
static _i() : mixed
Return values
mixed —_instance()
public
static _instance() : mixed
Return values
mixed —instance()
Set/get a instance of object.
public
static instance(mixed $instance) : mixed
Parameters
- $instance : mixed
Return values
mixed —t()
public
static t(mixed $id, array<string|int, mixed> $parameters = [], mixed $domain, mixed $locale) : string
Parameters
- $id : mixed
- $parameters = [] : array<string|int, mixed>
- $domain : mixed
- $locale : mixed
Return values
string —trans()
public
static trans(mixed $id, array<string|int, mixed> $parameters = [], mixed $domain, mixed $locale) : string
Parameters
- $id : mixed
- $parameters = [] : array<string|int, mixed>
- $domain : mixed
- $locale : mixed