TenantAtlas/app/Support/Operations/ExecutionAuthorityMode.php
2026-03-17 22:48:57 +01: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));
}
}