Skip to content

API reference / Quittio \ Core \ Countries

RetentionRule

final readonly class in quittio/core

Quittio\Core\Countries\RetentionRule · Source

Retention period for invoices.

Properties#

PropertyTypeDescription
$fromEndOfCalendarYear readonlybool
$years readonlyint

Methods#

MethodDescription
->__construct()
->until()Last day of the retention period for an invoice issued on $issueDate.

__construct()#

public function __construct(int $years, bool $fromEndOfCalendarYear = true)
ParameterTypeDescription
$yearsint
$fromEndOfCalendarYearbool = true

until()#

public function until(Date $issueDate): Date

Last day of the retention period for an invoice issued on $issueDate.

ParameterTypeDescription
$issueDateDate
Returns
Date

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