LanguageCode
in package
LanguageCode
Tags
Table of Contents
- $languageCode : string
- Language code.
- __construct() : mixed
- Class Constructor
- __toString() : string
- Returns the language code.
- asString() : string
- As String
Properties
$languageCode
Language code.
protected
string
$languageCode
= ''
Methods
__construct()
Class Constructor
public
__construct(StringType $code) : mixed
Validates the parameter and saves it to the property in uppercase format.
Parameters
- $code : StringType
Tags
Return values
mixed —__toString()
Returns the language code.
public
__toString() : string
Return values
string —asString()
As String
public
asString() : string
Returns the language code as a string.