Version.php
Pfad: src/Domain/Dokumentation/Version.php
Ext: php
Größe: 659 Bytes
Geändert: 2026-07-16 08:32:40+02
<?php
declare(strict_types=1);
namespace Demo\Domain\Dokumentation;
/**
* Value Object einer Historien-Version: Metadaten eines gespeicherten Vorzustands.
* Unveraenderlich; adressiert wird ueber die technische History-ID.
*/
final class Version
{
/**
* @param int $id Eindeutige History-ID (Versionsadresse).
* @param string $geaendertAm Zeitpunkt der Aenderung (ISO 8601).
* @param string $operation Art der Aenderung (INSERT/UPDATE/DELETE).
*/
public function __construct(
public readonly int $id,
public readonly string $geaendertAm,
public readonly string $operation
) {
}
}