LanguageTuple
implements
JsonSerializable
-
since
-
26.0.0
Table of Contents
Interfaces
- JsonSerializable
Properties
-
$from
: string
-
$fromLabel
: string
-
$to
: string
-
$toLabel
: string
Methods
-
__construct()
: mixed
-
fromArray()
: LanguageTuple
-
jsonSerialize()
: array{from: string, fromLabel: string, to: string, toLabel: string}
$from
private
string
$from
$fromLabel
private
string
$fromLabel
$to
private
string
$to
$toLabel
private
string
$toLabel
__construct()
public
__construct(string $from, string $fromLabel, string $to, string $toLabel) : mixed
Parameters
-
$from
: string
-
-
$fromLabel
: string
-
-
$to
: string
-
-
$toLabel
: string
-
-
since
-
26.0.0
fromArray()
public
static fromArray(array<string|int, mixed> $data) : LanguageTuple
Parameters
-
$data
: array<string|int, mixed>
-
-
since
-
26.0.0
jsonSerialize()
public
jsonSerialize() : array{from: string, fromLabel: string, to: string, toLabel: string}
-
since
-
26.0.0
Return values
array{from: string, fromLabel: string, to: string, toLabel: string}