Deploy FeWo mit PipelineManager / deploy (push) Successful in 3m59s
Eine Zusammenstellung vor jedem Dokument (Angebot, Bestaetigung, Buchungsunterlagen extern), Dokumentart je Vorgangsart, Freigaben fuer Vorlagen und Dokumentarten, Schutz vor unvereinbarten Bedingungen bei Portalbuchungen (E-004), kein doppelter Versand, Absicherung Hold 0 bis Paket 7, A6-Aufenthaltsbestaetigung vorbereitet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
42 lines
1.1 KiB
PHP
42 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace App\Documents;
|
|
|
|
/**
|
|
* One finding of a document composition. A blocker stops the document (data missing or contradictory); a point to
|
|
* confirm stops the automatic run and needs the landlord's explicit confirmation before sending by hand; information
|
|
* only explains.
|
|
*/
|
|
final class DocumentFinding
|
|
{
|
|
public const BLOCKER = 'blocker';
|
|
|
|
public const CONFIRM = 'confirm';
|
|
|
|
public const INFO = 'info';
|
|
|
|
/** Code of the finding "the settings reserve nothing for requests" (Hold = 0, package 7). */
|
|
public const HOLD_ZERO = 'hold_zero';
|
|
|
|
public function __construct(
|
|
public readonly string $severity,
|
|
public readonly string $message,
|
|
public readonly ?string $code = null,
|
|
) {}
|
|
|
|
public static function blocker(string $message): self
|
|
{
|
|
return new self(self::BLOCKER, $message);
|
|
}
|
|
|
|
public static function confirm(string $message, ?string $code = null): self
|
|
{
|
|
return new self(self::CONFIRM, $message, $code);
|
|
}
|
|
|
|
public static function info(string $message): self
|
|
{
|
|
return new self(self::INFO, $message);
|
|
}
|
|
}
|