API reference / Quittio \ Core \ Countries
RetentionRule
final readonly class in quittio/core
Quittio\Core\Countries\RetentionRule · Source
Retention period for invoices.
Properties#
| Property | Type | Description |
|---|---|---|
$fromEndOfCalendarYear readonly | bool | |
$years readonly | int |
Methods#
| Method | Description |
|---|---|
->__construct() | |
->until() | Last day of the retention period for an invoice issued on $issueDate. |
__construct()#
public function __construct(int $years, bool $fromEndOfCalendarYear = true)| Parameter | Type | Description |
|---|---|---|
$years | int | |
$fromEndOfCalendarYear | bool = true |
until()#
public function until(Date $issueDate): DateLast day of the retention period for an invoice issued on $issueDate.
| Parameter | Type | Description |
|---|---|---|
$issueDate | Date |
- Returns
Date