TenantAtlas/app/Support/Livewire/TrustedState/TrustedStateClass.php
2026-03-19 00:00:32 +01:00

23 lines
481 B
PHP

<?php
declare(strict_types=1);
namespace App\Support\Livewire\TrustedState;
enum TrustedStateClass: string
{
case Presentation = 'presentation';
case LockedIdentity = 'locked_identity';
case ServerDerivedAuthority = 'server_derived_authority';
public function allowsClientMutation(): bool
{
return $this === self::Presentation;
}
public function requiresServerRevalidation(): bool
{
return $this !== self::Presentation;
}
}