Quittio 0.3 API

Period
in package
uses Immutable

Read onlyYes
FinalYes

Invoicing period (BG-14: BT-73, BT-74) or invoice line period (BG-26: BT-134, BT-135).

At least one of start or end must be set; the end must not lie before the start.

Table of Contents

Properties

$end  : Date|null
$start  : Date|null

Methods

__construct()  : mixed
between()  : self
isValid()  : bool
with()  : static
Returns a copy with the given properties replaced.

Properties

Methods

__construct()

public __construct([Date|null $start = null ][, Date|null $end = null ]) : mixed
Parameters
$start : Date|null = null
$end : Date|null = null

between()

public static between(Date|string|null $start, Date|string|null $end) : self
Parameters
$start : Date|string|null
$end : Date|string|null
Return values
self

isValid()

public isValid() : bool
Return values
bool

with()

Returns a copy with the given properties replaced.

public with(array<string, mixed> $changes) : static
Parameters
$changes : array<string, mixed>
Return values
static
On this page

Search results