---
title: "OutputFormat – API-Referenz · Quittio"
description: "Definition of an output format."
canonical_url: "https://quittio.dev/docs/api/Quittio/Core/Formats/OutputFormat"
locale: de
meta:
  "og:description": "Definition of an output format."
  "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": "OutputFormat – 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) \\ [Formats](https://quittio.dev/docs/api/Quittio/Core/Formats)

# OutputFormat

final readonly class in quittio/core

`Quittio\Core\Formats\OutputFormat` · [Source](https://github.com/Quittio/quittio/blob/v0.7.1/packages/core/src/Formats/OutputFormat.php#L12)

Definition of an output format.

## Properties \#

| Property | Type | Description |
| --- | --- | --- |
| `$defaultProfile` readonly | `string\|null` | profile used when none is given |
| `$embedsXml` readonly | `bool` | whether the XML is embedded in the PDF (ZUGFeRD/Factur-X) |
| `$html` readonly | `bool` | |
| `$json` readonly | `bool` | |
| `$key` readonly | `string` | |
| `$pdf` readonly | `bool` | whether a PDF is produced |
| `$profiles` readonly | `list<string>` | allowed profile keys; empty = every profile that supports the syntax |
| `$syntax` readonly | `[Syntax](https://quittio.dev/docs/api/Quittio/Core/Profiles/Syntax)\|null` | XML syntax, null for formats without XML |

## Methods \#

| Method | Description |
| --- | --- |
| `->__construct()` | |
| `->allowsProfile()` | |
| `->hasXml()` | |
| `->isEInvoice()` | Whether the format is an e-invoice in the sense of EN 16931 (structured XML). |

### `__construct()`#

```
public function __construct(
    string $key,
    Syntax|null $syntax = null,
    bool $pdf = false,
    bool $embedsXml = false,
    string|null $defaultProfile = null,
    list<string> $profiles = [],
    bool $html = false,
    bool $json = false,
)
```

| Parameter | Type | Description |
| --- | --- | --- |
| `$key` | `string` | |
| `$syntax` | `[Syntax](https://quittio.dev/docs/api/Quittio/Core/Profiles/Syntax)\|null` = `null` | XML syntax, null for formats without XML |
| `$pdf` | `bool` = `false` | whether a PDF is produced |
| `$embedsXml` | `bool` = `false` | whether the XML is embedded in the PDF (ZUGFeRD/Factur-X) |
| `$defaultProfile` | `string\|null` = `null` | profile used when none is given |
| `$profiles` | `list<string>` = `[]` | allowed profile keys; empty = every profile that supports the syntax |
| `$html` | `bool` = `false` | |
| `$json` | `bool` = `false` | |

### `allowsProfile()`#

```
public function allowsProfile(string $key): bool
```

| Parameter | Type | Description |
| --- | --- | --- |
| `$key` | `string` | |

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

### `hasXml()`#

```
public function hasXml(): bool
```

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

### `isEInvoice()`#

```
public function isEInvoice(): bool
```

Whether the format is an e-invoice in the sense of EN 16931 (structured XML).

<dl><dt>Returns</dt>
<dd><code>bool</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/Formats/OutputFormat#webpage","@type":"WebPage","description":"Definition of an output format.","name":"OutputFormat – API-Referenz","url":"https://quittio.dev/docs/api/Quittio/Core/Formats/OutputFormat","isPartOf":{"@id":"https://quittio.dev/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://quittio.dev/docs/api/Quittio/Core/Formats/OutputFormat"]}],"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"}]}
```