---
title: "Inspect – API-Referenz · Quittio"
description: "Helpers shared by the rule sets."
canonical_url: "https://quittio.dev/docs/api/Quittio/Core/Validation/Rules/Inspect"
locale: de
meta:
  "og:description": "Helpers shared by the rule sets."
  "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": "Inspect – 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) \\ [Validation](https://quittio.dev/docs/api/Quittio/Core/Validation) \\ [Rules](https://quittio.dev/docs/api/Quittio/Core/Validation/Rules)

# Inspect

final class in quittio/core

`Quittio\Core\Validation\Rules\Inspect` · [Source](https://github.com/Quittio/quittio/blob/v0.7.1/packages/core/src/Validation/Rules/Inspect.php#L16)

Helpers shared by the rule sets.

## Methods \#

| Method | Description |
| --- | --- |
| `::categories()` | VAT categories used by lines, document allowances and charges. |
| `::filled()` | |
| `::isZero()` | |
| `::linesIn()` | |
| `::uses()` | |
| `::vatPrefix()` | Country prefix of a VAT identifier; Greece uses "EL". |
| `::withoutLinesByProfile()` | MINIMUM and BASIC WL carry no invoice lines (BG-25): line based rules do not apply to documents of these profiles without lines, e.g. when they are read. |

### `categories()`#

```
public static function categories(InvoiceData $invoice): list<VatCategory>
```

static

VAT categories used by lines, document allowances and charges.

| Parameter | Type | Description |
| --- | --- | --- |
| `$invoice` | `[InvoiceData](https://quittio.dev/docs/api/Quittio/Core/Data/InvoiceData)` | |

<dl><dt>Returns</dt>
<dd><code>list&lt;<a href="https://quittio.dev/docs/api/Quittio/Core/Enums/VatCategory">VatCategory</a>&gt;</code></dd>
</dl>

### `filled()`#

```
public static function filled(?string $value): bool
```

static

| Parameter | Type | Description |
| --- | --- | --- |
| `$value` | `?string` | |

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

### `isZero()`#

```
public static function isZero(?BigDecimal $value): bool
```

static

| Parameter | Type | Description |
| --- | --- | --- |
| `$value` | `?Brick\Math\BigDecimal` | |

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

### `linesIn()`#

```
public static function linesIn(
    InvoiceData $invoice,
    VatCategory $category,
): list<InvoiceLine>
```

static

| Parameter | Type | Description |
| --- | --- | --- |
| `$invoice` | `[InvoiceData](https://quittio.dev/docs/api/Quittio/Core/Data/InvoiceData)` | |
| `$category` | `[VatCategory](https://quittio.dev/docs/api/Quittio/Core/Enums/VatCategory)` | |

<dl><dt>Returns</dt>
<dd><code>list&lt;<a href="https://quittio.dev/docs/api/Quittio/Core/Data/Lines/InvoiceLine">InvoiceLine</a>&gt;</code></dd>
</dl>

### `uses()`#

```
public static function uses(InvoiceData $invoice, VatCategory $category): bool
```

static

| Parameter | Type | Description |
| --- | --- | --- |
| `$invoice` | `[InvoiceData](https://quittio.dev/docs/api/Quittio/Core/Data/InvoiceData)` | |
| `$category` | `[VatCategory](https://quittio.dev/docs/api/Quittio/Core/Enums/VatCategory)` | |

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

### `vatPrefix()`#

```
public static function vatPrefix(string $vatId): string
```

static

Country prefix of a VAT identifier; Greece uses "EL".

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

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

### `withoutLinesByProfile()`#

```
public static function withoutLinesByProfile(
    InvoiceData $invoice,
    RuleReporter $report,
): bool
```

static

MINIMUM and BASIC WL carry no invoice lines (BG-25): line based rules do not apply to documents of these profiles without lines, e.g. when they are read.

| Parameter | Type | Description |
| --- | --- | --- |
| `$invoice` | `[InvoiceData](https://quittio.dev/docs/api/Quittio/Core/Data/InvoiceData)` | |
| `$report` | `[RuleReporter](https://quittio.dev/docs/api/Quittio/Core/Validation/Rules/RuleReporter)` | |

<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/Validation/Rules/Inspect#webpage","@type":"WebPage","description":"Helpers shared by the rule sets.","name":"Inspect – API-Referenz","url":"https://quittio.dev/docs/api/Quittio/Core/Validation/Rules/Inspect","isPartOf":{"@id":"https://quittio.dev/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://quittio.dev/docs/api/Quittio/Core/Validation/Rules/Inspect"]}],"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"}]}
```