Vier Schablonen (Eigenes/Portal-Inkasso, Eigene/Externe Vertragsdokumentation) in app/Process/Templates, TemplateComposer prüft Ergebnisse, Verantwortlichkeiten, Ausschlüsse und harte Modulabhängigkeiten. Der Plan friert die Schablonenversionen ein. A3–A5 bleiben als Voreinstellungen; die vierte Kombination (eigenes Inkasso + externe Unterlagen) ist darstellbar. Konfigurator-Logik und ConfigureChannelProcess kennen die Schablonenwahl. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
40 lines
902 B
PHP
40 lines
902 B
PHP
<?php
|
|
|
|
namespace App\Process\Models;
|
|
|
|
use App\Process\Templates\TemplateArea;
|
|
|
|
/**
|
|
* One entry of a model's course: a module, an extension point where variants insert modules, or a slot where the
|
|
* function template chosen for its area puts its modules.
|
|
*/
|
|
final readonly class Step
|
|
{
|
|
private function __construct(public ?string $module, public ?Point $point, public ?TemplateArea $slot = null) {}
|
|
|
|
public static function module(string $key): self
|
|
{
|
|
return new self($key, null);
|
|
}
|
|
|
|
public static function point(Point $point): self
|
|
{
|
|
return new self(null, $point);
|
|
}
|
|
|
|
public static function slot(TemplateArea $area): self
|
|
{
|
|
return new self(null, null, $area);
|
|
}
|
|
|
|
public function isPoint(): bool
|
|
{
|
|
return $this->point !== null;
|
|
}
|
|
|
|
public function isSlot(): bool
|
|
{
|
|
return $this->slot !== null;
|
|
}
|
|
}
|