21 lines
381 B
PHP
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));
|
|
}
|
|
}
|