Files
LarsandClaude Opus 5.5 7e22e12cac U-A/U-B: Prozesskern mit Fachmodulen, versionierten Modellen, eingefrorenem Prozessplan, ProcessRunner (harte/weiche Abhängigkeiten), CasePricing, Loyalty nur im Tester
CaseActivities/CaseAutomation sind Fassaden über ProcessRunner. Verhaltensvergleich v0.11:
11 Abläufe und 198 Konstellationen gleich, beabsichtigte Abweichungen I-004/I-005 (F-001/F-002).
Volle Suite vor U-B: 785/785.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 14:49:44 +01:00

36 lines
880 B
PHP

<?php
namespace App\Process;
/**
* What one automatic advance of a case did: the steps that ran, and per step that was due but held back the reasons
* (shown to the landlord as tasks and notes, as before).
*/
final class AdvanceResult
{
/** @var list<string> */
public array $ran = [];
/** @var array<string, list<string>> module key => reasons */
public array $held = [];
public function ran(string $module): bool
{
return in_array($module, $this->ran, true);
}
/**
* Reasons of one step, or of all steps that were held back.
*
* @return list<string>
*/
public function reasons(?string $module = null): array
{
if ($module !== null) {
return $this->held[$module] ?? [];
}
return array_values(array_unique(array_merge(...array_values($this->held ?: [[]]))));
}
}