Skip to content

API reference / Quittio \ Core \ Data \ References

DocumentReference

final readonly class in quittio/core · uses Immutable

Quittio\Core\Data\References\DocumentReference · Source

Reference to a related document on line level or as additional reference (profile EXTENDED), e.g. delivery note, order, contract or receiving advice.

$typeCode uses UNTDID 1001 (e.g. 130 invoiced object, 916 additional document) where applicable.

Constants#

ConstantValueDescription
TYPE_CONTRACT'contract'
TYPE_DESPATCH_ADVICE'despatch_advice'
TYPE_ORDER'order'
TYPE_OTHER'other'
TYPE_RECEIVING_ADVICE'receiving_advice'

Properties#

PropertyTypeDescription
$description readonly?string
$id readonlystring
$issueDate readonly?Date
$kind readonlystring
$lineId readonly?string
$typeCode readonly?RawCode

Methods#

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

__construct()#

public function __construct(
    string $id,
    string $kind = self::TYPE_OTHER,
    ?string $lineId = null,
    ?Date $issueDate = null,
    ?RawCode $typeCode = null,
    ?string $description = null,
)
ParameterTypeDescription
$idstring
$kindstring = self::TYPE_OTHER
$lineId?string = null
$issueDate?Date = null
$typeCode?RawCode = null
$description?string = null

with()#

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

Returns a copy with the given properties replaced.

ParameterTypeDescription
$changesarray<string, mixed>
Returns
static

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