---
title: "BuildsPresentationAndMeta – API-Referenz · Quittio"
description: "Presentation, locale, time zone, custom values, flags and the source of the invoice."
canonical_url: "https://quittio.dev/docs/api/Quittio/Core/Builder/Concerns/BuildsPresentationAndMeta"
locale: de
meta:
  "og:description": "Presentation, locale, time zone, custom values, flags and the source of the invoice."
  "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": "BuildsPresentationAndMeta – 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) \\ [Builder](https://quittio.dev/docs/api/Quittio/Core/Builder) \\ [Concerns](https://quittio.dev/docs/api/Quittio/Core/Builder/Concerns)

# BuildsPresentationAndMeta

trait in quittio/core

`Quittio\Core\Builder\Concerns\BuildsPresentationAndMeta` · [Source](https://github.com/Quittio/quittio/blob/v0.7.1/packages/core/src/Builder/Concerns/BuildsPresentationAndMeta.php#L20)

Presentation, locale, time zone, custom values, flags and the source of the invoice.

Part of `InvoiceBuilder`, which holds the state; use the builder, not the trait.

## Methods \#

| Method | Description |
| --- | --- |
| `->custom()` | Free data for templates (view model key meta.custom); the same key replaces the value. |
| `->flag()` | Sets a flag that country packs evaluate (e.g. a small amount invoice in Germany). |
| `->locale()` | Language of the invoice: labels, generated texts and the exemption texts of presets. The locale of a render call wins; without both, the configured locale or the country default. |
| `->presentation()` | Design of this invoice in PDF and HTML: a Presentation replaces it, an array changes single values (->presentation(\['introText' => 'Thank you for your order.', 'showGrossPrices' => true])), a callable receives the current Presentation and returns the new one. |
| `->source()` | Origin of the data, e.g. "shop" (view model key meta.source). |
| `->timezone()` | Time zone for DateTimeInterface values and for the default issue date; call it before the date setters. |

### `custom()`#

```
public function custom(string $key, mixed $value): static
```

Free data for templates (view model key meta.custom); the same key replaces the value.

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

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

### `flag()`#

```
public function flag(string $flag, bool $enabled = true): static
```

Sets a flag that country packs evaluate (e.g. a small amount invoice in Germany).

| Parameter | Type | Description |
| --- | --- | --- |
| `$flag` | `string` | |
| `$enabled` | `bool` = `true` | |

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

### `locale()`#

```
public function locale(string $locale): static
```

Language of the invoice: labels, generated texts and the exemption texts of presets. The locale of a render call wins; without both, the configured locale or the country default.

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

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

### `presentation()`#

```
public function presentation(Presentation|array|callable $presentation): static
```

Design of this invoice in PDF and HTML: a Presentation replaces it, an array changes single values (->presentation(\['introText' => 'Thank you for your order.', 'showGrossPrices' => true])), a callable receives the current Presentation and returns the new one.

| Parameter | Type | Description |
| --- | --- | --- |
| `$presentation` | `[Presentation](https://quittio.dev/docs/api/Quittio/Core/Data/Presentation/Presentation)\|array\|callable` | |

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

### `source()`#

```
public function source(string $source): static
```

Origin of the data, e.g. "shop" (view model key meta.source).

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

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

### `timezone()`#

```
public function timezone(string $timezone): static
```

Time zone for DateTimeInterface values and for the default issue date; call it before the date setters.

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

<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/Builder/Concerns/BuildsPresentationAndMeta#webpage","@type":"WebPage","description":"Presentation, locale, time zone, custom values, flags and the source of the invoice.","name":"BuildsPresentationAndMeta – API-Referenz","url":"https://quittio.dev/docs/api/Quittio/Core/Builder/Concerns/BuildsPresentationAndMeta","isPartOf":{"@id":"https://quittio.dev/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://quittio.dev/docs/api/Quittio/Core/Builder/Concerns/BuildsPresentationAndMeta"]}],"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"}]}
```