\MslsLanguageArray

Stores the language input from post

Summary

Methods
Properties
Constants
__construct()
set()
get_val()
get_arr()
No public properties found
No constants found
No protected methods found
$arr
N/A
No private methods found
No private properties found
N/A

Properties

$arr

$arr : array

Generic container

Type

array

Methods

__construct()

__construct(array $arr)

Constructor

Parameters

array $arr

set()

set(string $key, mixed $value) : \MslsLanguageArray

Set a key-value-pair - $key must be a string of length >= 2 - $value must be an integer > 0

Parameters

string $key
mixed $value

Returns

\MslsLanguageArray

get_val()

get_val(string $key) : int

Get the value of the element with the specified key

Parameters

string $key

Returns

int

get_arr()

get_arr(string $key) : array

Get the filtered array without the specified element

Parameters

string $key

Returns

array