TenantAtlas/apps/platform/app/Support/Operations/ExecutionAuthorityMode.php
2026-04-08 09:33:16 +02:00

21 lines
381 B
PHP

<?php
declare(strict_types=1);
namespace App\Support\Operations;
enum ExecutionAuthorityMode: string
{
case ActorBound = 'actor_bound';
case SystemAuthority = 'system_authority';
public static function fromNullable(mixed $value): ?self
{
if (! is_string($value)) {
return null;
}
return self::tryFrom(trim($value));
}
}