[self::ACTIVE], self::ACTIVE => [self::CLOSING], self::CLOSING => [self::ACTIVE, self::CLOSED], self::CLOSED => [self::ACTIVE, self::ARCHIVED], self::ARCHIVED => [], ]; public static function canTransition(string $from, string $to): bool { return in_array($to, self::TRANSITIONS[$from] ?? [], true); } public static function isReadonly(string $status): bool { return in_array($status, [self::CLOSED, self::ARCHIVED], true); } }