Skip to content

API reference / Quittio \ Core \ Enums \ Concerns

HasLabel

trait in quittio/core

Quittio\Core\Enums\Concerns\HasLabel · Source

Translated labels for code list enums, e.g. "Stunde" for HUR.

Labels live in resources/lang/{locale}/codes.php under the enum's label group.

Methods#

MethodDescription
->label()
::labelGroup()

label()#

public function label(?string $locale = null): string
ParameterTypeDescription
$locale?string = null
Returns
string

labelGroup()#

abstract public static function labelGroup(): string

static abstract

Returns
string

The open core packages are MIT licensed. The legal wording of the country packs must be confirmed by a tax adviser.