API reference / Quittio \ Core \ Data \ Extensions
Installment
final readonly class in quittio/core · uses Immutable
Quittio\Core\Data\Extensions\Installment · Source
One of several payment terms with its own due date (profile EXTENDED), e.g. instalments.
Properties#
| Property | Type | Description |
|---|---|---|
$amount readonly | ?Brick\Money\Money | |
$description readonly | ?string | |
$dueDate readonly | Date |
Methods#
| Method | Description |
|---|---|
->__construct() | |
->with() | Returns a copy with the given properties replaced. |
__construct()#
public function __construct(
Date $dueDate,
?Money $amount = null,
?string $description = null,
)| Parameter | Type | Description |
|---|---|---|
$dueDate | Date | |
$amount | ?Brick\Money\Money = null | |
$description | ?string = 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