ProfileRegistry
in package
FinalYes
Known profiles by key. Country packs and network packages register further profiles.
Table of Contents
Methods
- __construct() : mixed
- alias() : self
- all() : array<string, Profile>
- bySpecificationId() : Profile|null
- Finds the profile for a specification identifier (BT-24), e.g. when reading an invoice.
- get() : Profile
- has() : bool
- register() : self
- withDefaults() : self
Methods
__construct()
public
__construct([iterable<string|int, Profile> $profiles = [] ]) : mixed
Parameters
- $profiles : iterable<string|int, Profile> = []
alias()
public
alias(string $alias, string $key) : self
Parameters
- $alias : string
- $key : string
Return values
selfall()
public
all() : array<string, Profile>
Return values
array<string, Profile>bySpecificationId()
Finds the profile for a specification identifier (BT-24), e.g. when reading an invoice.
public
bySpecificationId(string $specificationId) : Profile|null
Parameters
- $specificationId : string
Return values
Profile|nullget()
public
get(Profile|string $profile) : Profile
Parameters
- $profile : Profile|string
Return values
Profilehas()
public
has(string $key) : bool
Parameters
- $key : string
Return values
boolregister()
public
register(Profile $profile) : self
Parameters
- $profile : Profile
Return values
selfwithDefaults()
public
static withDefaults() : self