Language
in package
implements
JsonSerializable
Class Language
Interfaces, Classes and Traits
- JsonSerializable
Table of Contents
- $code : string
- $id : mixed
- __construct() : mixed
- Language constructor.
- code() : string
- Return the current language.
- id() : int
- jsonSerialize() : mixed
- Specify data which should be serialized to JSON
Properties
$code
protected
string
$code
= 'en'
$id
protected
mixed
$id
= 0
Methods
__construct()
Language constructor.
public
__construct(string $code, int $id) : mixed
Parameters
- $code : string
- $id : int
Return values
mixed —code()
Return the current language.
public
code() : string
Return values
string —id()
public
id() : int
Return values
int —jsonSerialize()
Specify data which should be serialized to JSON
public
jsonSerialize() : mixed
Tags
Return values
mixed —data which can be serialized by json_encode, which is a value of any type other than a resource.