API reference / Quittio \ Core \ Data \ AllowanceCharge
LineAllowance
final readonly class in quittio/core · extends LineAllowanceCharge
Quittio\Core\Data\AllowanceCharge\LineAllowance · Source
Invoice line allowance (BG-27).
Properties#
| Property | Type | Description |
|---|---|---|
$amount readonly | ?Brick\Money\Money | from LineAllowanceCharge |
$baseAmount readonly | ?Brick\Money\Money | from LineAllowanceCharge |
$percent readonly | ?Brick\Math\BigDecimal | from LineAllowanceCharge |
$reason readonly | ?string | from LineAllowanceCharge |
$reasonCode readonly | BackedEnum|RawCode|null | from LineAllowanceCharge |
Methods#
| Method | Description |
|---|---|
->__construct() | |
->isCharge() | |
->reasonCodeValue() | |
->with() |
__construct()#
public function __construct(
?Money $amount,
?Money $baseAmount = null,
?BigDecimal $percent = null,
?string $reason = null,
AllowanceReasonCode|RawCode|null $reasonCode = null,
)| Parameter | Type | Description |
|---|---|---|
$amount | ?Brick\Money\Money | |
$baseAmount | ?Brick\Money\Money = null | |
$percent | ?Brick\Math\BigDecimal = null | |
$reason | ?string = null | |
$reasonCode | AllowanceReasonCode|RawCode|null = null |
isCharge()#
public function isCharge(): bool- Returns
bool
reasonCodeValue()#
public function reasonCodeValue(): ?string- Returns
?string
with()#
public function with(array<string, mixed> $changes): static| Parameter | Type | Description |
|---|---|---|
$changes | array<string, mixed> |
- Returns
static