Zum Inhalt springen

API reference / Quittio \ Core \ Data

Identifier

final readonly class in quittio/core · uses Immutable

Quittio\Core\Data\Identifier · Source

Identifier with an optional scheme (ISO/IEC 6523 ICD or another code list depending on the field).

Properties#

PropertyTypeDescription
$scheme readonlyIdentifierScheme|RawCode|null
$value readonlystring

Methods#

MethodDescription
->__construct()
::of()
->schemeValue()
->with()Returns a copy with the given properties replaced.

__construct()#

public function __construct(string $value, IdentifierScheme|RawCode|null $scheme = null)
ParameterTypeDescription
$valuestring
$schemeIdentifierScheme|RawCode|null = null

of()#

public static function of(
    string $value,
    IdentifierScheme|RawCode|string|null $scheme = null,
): self

static

ParameterTypeDescription
$valuestring
$schemeIdentifierScheme|RawCode|string|null = null
Returns
self

schemeValue()#

public function schemeValue(): ?string
Returns
?string

with()#

public function with(array<string, mixed> $changes): static

Returns a copy with the given properties replaced.

ParameterTypeDescription
$changesarray<string, mixed>
Returns
static

Die Open-Core-Pakete stehen unter der MIT-Lizenz. Die rechtlichen Formulierungen der Länderpakete sind mit einer Steuerberatung abzustimmen.