API reference / Quittio \ Core \ Data \ Payment
PenaltyTerms
final readonly class in quittio/core · uses Immutable
Quittio\Core\Data\Payment\PenaltyTerms · Source
Late payment terms. Structured only in profile EXTENDED, otherwise rendered as text.
Properties#
| Property | Type | Description |
|---|---|---|
$days readonly | ?int | |
$percent readonly | ?Brick\Math\BigDecimal | |
$text readonly | ?string |
Methods#
| Method | Description |
|---|---|
->__construct() | |
->with() | Returns a copy with the given properties replaced. |
__construct()#
public function __construct(
?int $days = null,
?BigDecimal $percent = null,
?string $text = null,
)| Parameter | Type | Description |
|---|---|---|
$days | ?int = null | |
$percent | ?Brick\Math\BigDecimal = null | |
$text | ?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