Zum Inhalt springen

API reference / Quittio \ Core \ Profiles

ProfileRegistry

final class in quittio/core

Quittio\Core\Profiles\ProfileRegistry · Source

Known profiles by key. Country packs and network packages register further profiles.

Methods#

MethodDescription
->__construct()
->alias()
->all()
->bySpecificationId()Finds the profile for a specification identifier (BT-24), e.g. when reading an invoice.
->get()
->has()
->register()
::withDefaults()

__construct()#

public function __construct(iterable<Profile> $profiles = [])
ParameterTypeDescription
$profilesiterable<Profile> = []

alias()#

public function alias(string $alias, string $key): self
ParameterTypeDescription
$aliasstring
$keystring
Returns
self

all()#

public function all(): array<string, Profile>
Returns
array<string, Profile>

bySpecificationId()#

public function bySpecificationId(string $specificationId): ?Profile

Finds the profile for a specification identifier (BT-24), e.g. when reading an invoice.

ParameterTypeDescription
$specificationIdstring
Returns
?Profile

get()#

public function get(Profile|string $profile): Profile
ParameterTypeDescription
$profileProfile|string
Returns
Profile

has()#

public function has(string $key): bool
ParameterTypeDescription
$keystring
Returns
bool

register()#

public function register(Profile $profile): self
ParameterTypeDescription
$profileProfile
Returns
self

withDefaults()#

public static function withDefaults(): self

static

Returns
self

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