API reference / Quittio \ Core \ Data \ References
PrecedingInvoiceReference
final readonly class in quittio/core · uses Immutable
Quittio\Core\Data\References\PrecedingInvoiceReference · Source
Preceding invoice reference (BG-3), used for cancellations, corrections and final invoices.
Properties#
| Property | Type | Description |
|---|---|---|
$issueDate readonly | ?Date | |
$number readonly | string |
Methods#
| Method | Description |
|---|---|
->__construct() | |
->with() | Returns a copy with the given properties replaced. |
__construct()#
public function __construct(string $number, ?Date $issueDate = null)| Parameter | Type | Description |
|---|---|---|
$number | string | |
$issueDate | ?Date = null |
with()#
public function with(array<string, mixed> $changes): staticReturns a copy with the given properties replaced.
| Parameter | Type | Description |
|---|---|---|
$changes | array<string, mixed> |
- Returns
static