LanguageCode

LanguageCode

category

System

package

Shared

Methods

Class Constructor

__construct(\StringType $code) 

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

Throws
\InvalidArgumentException

Arguments

$code

\StringType

Returns the language code.

__toString() : string

Response

string

As String

asString() : string

Returns the language code as a string.

Response

string

Properties

Language code.

languageCode : string
var

Type(s)

string