Quittio 0.3 API

LegalTextCatalog
in package

Read onlyYes
FinalYes

Legal and informational texts of a country pack per locale.

Table of Contents

Properties

$fallbackLocale  : string
$texts  : array<string|int, mixed>

Methods

__construct()  : mixed
get()  : string|null
has()  : bool

Properties

Methods

__construct()

public __construct([array<string, array<string, string>> $texts = [] ][, string $fallbackLocale = 'en' ]) : mixed
Parameters
$texts : array<string, array<string, string>> = []

key => [locale => text]

$fallbackLocale : string = 'en'

get()

public get(string $key[, string|null $locale = null ][, array<string, string> $replace = [] ]) : string|null
Parameters
$key : string
$locale : string|null = null
$replace : array<string, string> = []
Return values
string|null

has()

public has(string $key) : bool
Parameters
$key : string
Return values
bool
On this page

Search results