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
Methods
- __construct() : mixed
- between() : self
- isValid() : bool
- with() : static
- Returns a copy with the given properties replaced.
Properties
$end
public
Date|null
$end
= null
$start
public
Date|null
$start
= null
Methods
__construct()
public
__construct([Date|null $start = null ][, Date|null $end = null ]) : mixed
Parameters
between()
public
static between(Date|string|null $start, Date|string|null $end) : self
Parameters
Return values
selfisValid()
public
isValid() : bool
Return values
boolwith()
Returns a copy with the given properties replaced.
public
with(array<string, mixed> $changes) : static
Parameters
- $changes : array<string, mixed>