---
title: "LineVat – API-Referenz · Quittio"
description: "Line VAT information (BG-30)."
canonical_url: "https://quittio.dev/docs/api/Quittio/Core/Data/Lines/LineVat"
locale: de
meta:
  "og:description": "Line VAT information (BG-30)."
  "og:image": "https://quittio.dev/og/quittio-de.jpg"
  "og:image:alt": "Quittio: E-Rechnungen für PHP und Laravel. Rechtssicher, validiert, archiviert, mit geprüfter Beispielrechnung."
  "og:image:height": "630"
  "og:image:type": image/jpeg
  "og:image:width": "1200"
  "og:title": "LineVat – API-Referenz · Quittio"
  "twitter:image": "https://quittio.dev/og/quittio-de.jpg"
  "twitter:image:alt": "Quittio: E-Rechnungen für PHP und Laravel. Rechtssicher, validiert, archiviert, mit geprüfter Beispielrechnung."
---

> Index of every page on this site: [llms.txt](https://quittio.dev/llms.txt)

[API reference](https://quittio.dev/docs/api) / [Quittio](https://quittio.dev/docs/api/Quittio) \\ [Core](https://quittio.dev/docs/api/Quittio/Core) \\ [Data](https://quittio.dev/docs/api/Quittio/Core/Data) \\ [Lines](https://quittio.dev/docs/api/Quittio/Core/Data/Lines)

# LineVat

final readonly class in quittio/core · uses [`Immutable`](https://quittio.dev/docs/api/Quittio/Core/Data/Concerns/Immutable)

`Quittio\Core\Data\Lines\LineVat` · [Source](https://github.com/Quittio/quittio/blob/v0.7.1/packages/core/src/Data/Lines/LineVat.php#L21)

Line VAT information (BG-30).

The exemption reason and code are package-internal inputs: EN 16931 carries them on the VAT breakdown (BT-120, BT-121), the calculator copies them there.

## Properties \#

| Property | Type | Description |
| --- | --- | --- |
| `$category` readonly | `[VatCategory](https://quittio.dev/docs/api/Quittio/Core/Enums/VatCategory)` | |
| `$exemptionReason` readonly | `?string` | |
| `$exemptionReasonCode` readonly | `[VatExemptionReasonCode](https://quittio.dev/docs/api/Quittio/Core/Enums/VatExemptionReasonCode)\| [RawCode](https://quittio.dev/docs/api/Quittio/Core/Codes/RawCode)\|null` | |
| `$presetKey` readonly | `?string` | |
| `$rate` readonly | `?Brick\Math\BigDecimal` | |

## Methods \#

| Method | Description |
| --- | --- |
| `->__construct()` | |
| `->groupKey()` | Key of the VAT group (category and rate) this line belongs to. |
| `::key()` | |
| `->with()` | Returns a copy with the given properties replaced. |

### `__construct()`#

```
public function __construct(
    VatCategory $category,
    ?BigDecimal $rate = null,
    ?string $exemptionReason = null,
    VatExemptionReasonCode|RawCode|null $exemptionReasonCode = null,
    ?string $presetKey = null,
)
```

| Parameter | Type | Description |
| --- | --- | --- |
| `$category` | `[VatCategory](https://quittio.dev/docs/api/Quittio/Core/Enums/VatCategory)` | |
| `$rate` | `?Brick\Math\BigDecimal` = `null` | |
| `$exemptionReason` | `?string` = `null` | |
| `$exemptionReasonCode` | `[VatExemptionReasonCode](https://quittio.dev/docs/api/Quittio/Core/Enums/VatExemptionReasonCode)\| [RawCode](https://quittio.dev/docs/api/Quittio/Core/Codes/RawCode)\|null` = `null` | |
| `$presetKey` | `?string` = `null` | |

### `groupKey()`#

```
public function groupKey(): string
```

Key of the VAT group (category and rate) this line belongs to.

<dl><dt>Returns</dt>
<dd><code>string</code></dd>
</dl>

### `key()`#

```
public static function key(VatCategory $category, ?BigDecimal $rate): string
```

static

| Parameter | Type | Description |
| --- | --- | --- |
| `$category` | `[VatCategory](https://quittio.dev/docs/api/Quittio/Core/Enums/VatCategory)` | |
| `$rate` | `?Brick\Math\BigDecimal` | |

<dl><dt>Returns</dt>
<dd><code>string</code></dd>
</dl>

### `with()`#

```
public function with(array<string, mixed> $changes): static
```

Returns a copy with the given properties replaced.

| Parameter | Type | Description |
| --- | --- | --- |
| `$changes` | `array<string, mixed>` | |

<dl><dt>Returns</dt>
<dd><code>static</code></dd>
</dl>

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://quittio.dev/#website","@type":"WebSite","description":"E-Rechnungen für PHP und Laravel: ZUGFeRD, XRechnung und Peppol erstellen, prüfen, lesen und archivieren.","inLanguage":"de-DE","name":"Quittio","url":"https://quittio.dev/","publisher":{"@id":"https://quittio.dev/#identity"},"workTranslation":{"@id":"https://quittio.dev/en#website"}},{"@id":"https://quittio.dev/docs/api/Quittio/Core/Data/Lines/LineVat#webpage","@type":"WebPage","description":"Line VAT information (BG-30).","name":"LineVat – API-Referenz","url":"https://quittio.dev/docs/api/Quittio/Core/Data/Lines/LineVat","isPartOf":{"@id":"https://quittio.dev/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://quittio.dev/docs/api/Quittio/Core/Data/Lines/LineVat"]}],"primaryImageOfPage":{"@id":"https://quittio.dev/#logo"}},{"@id":"https://quittio.dev/#identity","@type":"Organization","description":"Open-Source-Bibliothek für E-Rechnungen in PHP und Laravel (ZUGFeRD, XRechnung, Peppol) und Quittio Managed.","email":"kontakt@niklasforst.de","legalName":"Niklas Forst – Softwareentwicklung","name":"Quittio","url":"https://quittio.dev","founder":{"@type":"Person","name":"Niklas Forst","url":"https://quittio.dev/ueber"},"logo":{"@id":"https://quittio.dev/#logo"},"sameAs":["https://github.com/Quittio/quittio","https://packagist.org/packages/quittio/quittio"]},{"@id":"https://quittio.dev/#logo","@type":"ImageObject","caption":"Quittio","contentUrl":"https://quittio.dev/logo.png","inLanguage":"de-DE","url":"https://quittio.dev/logo.png"}]}
```