进行了一些小优化

This commit is contained in:
2026-08-25 06:20:16 +08:00
parent 8ddbfdd7b7
commit eef73ee9e7
8 changed files with 232 additions and 76 deletions
+5
View File
@@ -76,6 +76,11 @@ final class TransitionService {
return $updated;
}
/** @return array<int,string> */
public static function allowed_targets(string $status): array {
return self::ALLOWED[sanitize_key($status)] ?? [];
}
/**
* Apply an identity transition inside an already-owned database transaction.
* The caller must lock the application row before invoking this method.