API reference / Quittio \ Core \ Data \ AllowanceCharge
LineAllowanceCharge
abstract readonly class in quittio/core
Quittio\Core\Data\AllowanceCharge\LineAllowanceCharge · Source
Common structure of invoice line allowances (BG-27) and charges (BG-28). Line allowances and charges have no VAT category of their own; they inherit the line's category.
Properties#
| Property | Type | Description |
|---|---|---|
$amount readonly | ?Brick\Money\Money | |
$baseAmount readonly | ?Brick\Money\Money | |
$percent readonly | ?Brick\Math\BigDecimal | |
$reason readonly | ?string | |
$reasonCode readonly | BackedEnum|RawCode|null |
Methods#
| Method | Description |
|---|---|
->__construct() | |
->isCharge() | |
->reasonCodeValue() | |
->with() |
__construct()#
public function __construct(
?Money $amount,
?Money $baseAmount = null,
?BigDecimal $percent = null,
?string $reason = null,
BackedEnum|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 | BackedEnum|RawCode|null = null |
isCharge()#
abstract 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