Documentation

CodeLabel
in package
implements JsonSerializable

Table of Contents

Interfaces

JsonSerializable

Properties

$code  : int
$label  : string
$translationKey  : string|null

Methods

__construct()  : mixed
getCode()  : int
getLabel()  : string
getTranslationKey()  : string|null
jsonSerialize()  : mixed
Specify data which should be serialized to JSON
setCode()  : void
setLabel()  : void
setTranslationKey()  : void

Properties

$translationKey

private string|null $translationKey

Methods

__construct()

public __construct(int $code, string $label[, string|null $translationKey = null ]) : mixed
Parameters
$code : int
$label : string
$translationKey : string|null = null

getCode()

public getCode() : int
Return values
int

getLabel()

public getLabel() : string
Return values
string

getTranslationKey()

public getTranslationKey() : string|null
Return values
string|null

setCode()

public setCode(int $code) : void
Parameters
$code : int

setLabel()

public setLabel(string $label) : void
Parameters
$label : string

setTranslationKey()

public setTranslationKey(string|null $translationKey) : void
Parameters
$translationKey : string|null

        
On this page

Search results