phpDocumentor

LanguageCode
in package

LanguageCode

Tags
category

System

Table of Contents

$languageCode  : string
Language code.
__construct()  : mixed
Class Constructor
__toString()  : string
Returns the language code.
asString()  : string
As String

Properties

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
throws
InvalidArgumentException
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.

Return values
string

Search results