API reference / Quittio \ Core \ Data \ Totals
VatBreakdown
final readonly class in quittio/core · uses Immutable
Quittio\Core\Data\Totals\VatBreakdown · Source
VAT breakdown (BG-23), one entry per combination of VAT category and rate.
Properties#
| Property | Type | Description |
|---|---|---|
$category readonly | VatCategory | |
$exemptionReason readonly | ?string | |
$exemptionReasonCode readonly | VatExemptionReasonCode|RawCode|null | |
$rate readonly | ?Brick\Math\BigDecimal | |
$taxableAmount readonly | Brick\Money\Money | |
$taxAmount readonly | Brick\Money\Money |
Methods#
| Method | Description |
|---|---|
->__construct() | |
->with() | Returns a copy with the given properties replaced. |
__construct()#
public function __construct(
Money $taxableAmount,
Money $taxAmount,
VatCategory $category,
?BigDecimal $rate = null,
?string $exemptionReason = null,
VatExemptionReasonCode|RawCode|null $exemptionReasonCode = null,
)| Parameter | Type | Description |
|---|---|---|
$taxableAmount | Brick\Money\Money | |
$taxAmount | Brick\Money\Money | |
$category | VatCategory | |
$rate | ?Brick\Math\BigDecimal = null | |
$exemptionReason | ?string = null | |
$exemptionReasonCode | VatExemptionReasonCode|RawCode|null = 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