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#
| Method | Description |
|---|---|
->__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 = [])| Parameter | Type | Description |
|---|---|---|
$profiles | iterable<Profile> = [] |
alias()#
public function alias(string $alias, string $key): self| Parameter | Type | Description |
|---|---|---|
$alias | string | |
$key | string |
- Returns
self
all()#
public function all(): array<string, Profile>- Returns
array<string, Profile>
bySpecificationId()#
public function bySpecificationId(string $specificationId): ?ProfileFinds the profile for a specification identifier (BT-24), e.g. when reading an invoice.
| Parameter | Type | Description |
|---|---|---|
$specificationId | string |
- Returns
?Profile
get()#
public function get(Profile|string $profile): Profile| Parameter | Type | Description |
|---|---|---|
$profile | Profile|string |
- Returns
Profile
has()#
public function has(string $key): bool| Parameter | Type | Description |
|---|---|---|
$key | string |
- Returns
bool
register()#
public function register(Profile $profile): self| Parameter | Type | Description |
|---|---|---|
$profile | Profile |
- Returns
self
withDefaults()#
public static function withDefaults(): self- Returns
self