LanguageCollector
extends Collector
in package
Class LanguageCollector.
Table of Contents
- $activities : array<string|int, mixed>
- $data : array<string|int, mixed>
- $language : Language
- $name : string
- __construct() : mixed
- addData() : static
- getActivities() : array<int, array<string, mixed>>
- getContents() : string
- getData() : array<string|int, mixed>
- getName() : string
- getSafeName() : string
- hasData() : bool
- setLanguage() : static
- getFallbackName() : string
- getLines() : array<int, array<string, string>>
- renderDirectories() : string
- renderLines() : string
- renderRenderedMessages() : string
Properties
$activities
protected
array<string|int, mixed>
$activities
= []
$data
protected
array<string|int, mixed>
$data
= []
$language
protected
Language
$language
$name
protected
string
$name
Methods
__construct()
public
__construct([string $name = 'default' ]) : mixed
Parameters
- $name : string = 'default'
Return values
mixed —addData()
public
addData(array<string|int, mixed> $data) : static
Parameters
- $data : array<string|int, mixed>
Return values
static —getActivities()
public
getActivities() : array<int, array<string, mixed>>
Return values
array<int, array<string, mixed>> —getContents()
public
getContents() : string
Return values
string —getData()
public
getData() : array<string|int, mixed>
Return values
array<string|int, mixed> —getName()
public
getName() : string
Return values
string —getSafeName()
public
getSafeName() : string
Return values
string —hasData()
public
hasData() : bool
Return values
bool —setLanguage()
public
setLanguage(Language $language) : static
Parameters
- $language : Language
Return values
static —getFallbackName()
protected
getFallbackName(string $locale) : string
Parameters
- $locale : string
Return values
string —getLines()
protected
getLines() : array<int, array<string, string>>
Return values
array<int, array<string, string>> —renderDirectories()
protected
renderDirectories() : string
Return values
string —renderLines()
protected
renderLines() : string
Return values
string —renderRenderedMessages()
protected
renderRenderedMessages() : string