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
$fallbackLocale
public
string
$fallbackLocale
= 'en'
$texts
public
array<string|int, mixed>
$texts
= []
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|nullhas()
public
has(string $key) : bool
Parameters
- $key : string