Documentation

Language
in package

A language definition for which the consent management is available.

Table of Contents

Properties

$current  : bool
Is this the current language?
$flag  : string
URL to the flag.
$locale  : string
The locale (currently, there is no ISO standard necessary).
$name  : string
Name.
$url  : string
Translation URL to the current opened website URL.

Methods

fromJson()  : self
Generate a `Language` object from an array.
getFlag()  : mixed
Getter.
getLocale()  : mixed
Getter.
getName()  : mixed
Getter.
getUrl()  : mixed
Getter.
isCurrent()  : mixed
Getter.
setFlag()  : mixed
Setter.
setIsCurrent()  : mixed
Setter.
setLocale()  : mixed
Setter.
setName()  : mixed
Setter.
setUrl()  : mixed
Setter.
toJson()  : mixed
Create a JSON representation of this object.

Properties

$current

Is this the current language?

private bool $current

$flag

URL to the flag.

private string $flag

$locale

The locale (currently, there is no ISO standard necessary).

private string $locale

$url

Translation URL to the current opened website URL.

private string $url

Methods

fromJson()

Generate a `Language` object from an array.

public static fromJson(array<string|int, mixed> $data) : self
Parameters
$data : array<string|int, mixed>
Return values
self

getFlag()

Getter.

public getFlag() : mixed
Tags
codeCoverageIgnore

getLocale()

Getter.

public getLocale() : mixed
Tags
codeCoverageIgnore

getName()

Getter.

public getName() : mixed
Tags
codeCoverageIgnore

getUrl()

Getter.

public getUrl() : mixed
Tags
codeCoverageIgnore

isCurrent()

Getter.

public isCurrent() : mixed
Tags
codeCoverageIgnore

setFlag()

Setter.

public setFlag(string $flag) : mixed
Parameters
$flag : string
Tags
codeCoverageIgnore

setIsCurrent()

Setter.

public setIsCurrent(bool $current) : mixed
Parameters
$current : bool
Tags
codeCoverageIgnore

setLocale()

Setter.

public setLocale(string $locale) : mixed
Parameters
$locale : string
Tags
codeCoverageIgnore

setName()

Setter.

public setName(string $name) : mixed
Parameters
$name : string
Tags
codeCoverageIgnore

setUrl()

Setter.

public setUrl(string $url) : mixed
Parameters
$url : string
Tags
codeCoverageIgnore

toJson()

Create a JSON representation of this object.

public toJson() : mixed

        
On this page

Search results