← Code-Übersicht

Prozess.php

Pfad: src/Domain/Prozess/Prozess.php

Ext: php

Größe: 945 Bytes

Geändert: 2026-07-15 23:53:24+02

<?php
declare(strict_types=1);

namespace Demo\Domain\Prozess;

/**
 * Kopf eines Prozesses (fuer Uebersicht und Detail-Kopf). Unveraenderlich.
 */
final class Prozess
{
    /**
     * @param int          $id          Technischer Schluessel.
     * @param string       $slug        Stabile Adresse.
     * @param string       $titel       Anzeigetitel.
     * @param string       $beschreibung Markdown-Beschreibung.
     * @param list<string> $tags        Schlagworte.
     * @param string       $erstellt    Erstellzeitpunkt (ISO 8601).
     * @param string       $geaendert   Aenderungszeitpunkt (ISO 8601).
     */
    public function __construct(
        public readonly int $id,
        public readonly string $slug,
        public readonly string $titel,
        public readonly string $beschreibung,
        public readonly array $tags,
        public readonly string $erstellt,
        public readonly string $geaendert
    ) {
    }
}