EmptyLanguageCode
extends LanguageCode
in package
EmptyLanguageCode
The purpose of this class is to return an empty string as representation of a empty language code value.
Tags
Table of Contents
- $languageCode : string
- Language code.
- __construct() : mixed
- Override constructor, as no argument are passed, and therefore no validation is needed in this class.
- __toString() : string
- Returns the language code.
- asString() : string
- As String
Properties
$languageCode
Language code.
protected
string
$languageCode
= ''
Methods
__construct()
Override constructor, as no argument are passed, and therefore no validation is needed in this class.
public
__construct() : mixed
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.