EmptyLanguageCode

Extends \LanguageCode

EmptyLanguageCode

The purpose of this class is to return an empty string as representation of a empty language code value.

category

System

package

Shared

Methods

Class Constructor

__construct(\StringType $code) 
inherited

Validates the parameter and saves it to the property in uppercase format.

Throws
\InvalidArgumentException

Arguments

$code

\StringType

Returns the language code.

__toString() : string
inherited

Response

string

As String

asString() : string
inherited

Returns the language code as a string.

Response

string

Properties

Language code.

languageCode : string
inherited
var

Type(s)

string