\TxTextControl\ReportingCloud\AssertAssertLanguageTrait

Trait AssertLanguageTrait

Summary

Methods
Properties
Constants
assertLanguage()
getDictionariesFilename()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
getDictionaries()
No private properties found
N/A

Methods

assertLanguage()

assertLanguage(string  $value, string  $message = '') : void

Check value is a valid language

Parameters

string $value
string $message

Throws

\TxTextControl\ReportingCloud\Exception\InvalidArgumentException

getDictionariesFilename()

getDictionariesFilename() : string

Return the filename, containing languages aka dictionaries array

Returns

string —

getDictionaries()

getDictionaries() : array<int,string>

Return languages aka dictionaries array

Returns

array