class AdminLevel

Properties

private int $level
private string $name
private string|null $code

Methods

__construct(int $level, string $name, string $code = null)

No description

int
getLevel()

Returns the administrative level.

string
getName()

Returns the administrative level name.

string|null
getCode()

Returns the administrative level short name.

string
__toString()

Returns a string with the administrative level name.

Details

at line 27
__construct(int $level, string $name, string $code = null)

No description

Parameters

int $level
string $name
string $code

at line 39
int getLevel()

Returns the administrative level.

Return Value

int

Level number [1,5]

at line 49
string getName()

Returns the administrative level name.

Return Value

string

at line 59
string|null getCode()

Returns the administrative level short name.

Return Value

string|null

at line 69
string __toString()

Returns a string with the administrative level name.

Return Value

string