Modellwahl über Kanalfähigkeiten mit erklärten Einschränkungen, Abgleich alter Werte, Ausführungsvarianten je Modul, getrennte Vertrags-/Buchungsinformation, Warten auf die Portalbestätigung mit Eskalation und Wiederaufnahme (Fälle C und D getestet). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
29 lines
849 B
PHP
29 lines
849 B
PHP
<?php
|
||
|
||
namespace App\Process;
|
||
|
||
/**
|
||
* Why something cannot be chosen or switched off – in a form the landlord can act on (docs/Prozessarchitektur/V2.1/02
|
||
* §3.2): what stands in the way and of what kind it is, which other way is allowed, what exactly to change.
|
||
*/
|
||
final readonly class Restriction
|
||
{
|
||
public const BUSINESS = 'fachlich';
|
||
|
||
public const CAPABILITY = 'Kanalfähigkeit';
|
||
|
||
public const SECURITY = 'Schutzregel';
|
||
|
||
public function __construct(
|
||
public string $kind,
|
||
public string $reason,
|
||
public ?string $alternative = null,
|
||
public ?string $change = null,
|
||
) {}
|
||
|
||
public function text(): string
|
||
{
|
||
return trim($this->reason.($this->alternative ? ' Zulässig ist stattdessen: '.$this->alternative.'.' : '').($this->change ? ' Änderung: '.$this->change.'.' : ''));
|
||
}
|
||
}
|