TenantAtlas/apps/platform/app/Exceptions/Entitlements/WorkspaceEntitlementBlockedException.php
Ahmed Darrazi 7f9f28bf07
Some checks failed
PR Fast Feedback / fast-feedback (pull_request) Failing after 57s
chore: automated commit of workspace changes
2026-04-27 19:18:40 +02:00

24 lines
551 B
PHP

<?php
declare(strict_types=1);
namespace App\Exceptions\Entitlements;
final class WorkspaceEntitlementBlockedException extends \RuntimeException
{
/**
* @param array<string, mixed> $decision
*/
public function __construct(private readonly array $decision)
{
parent::__construct((string) ($decision['block_reason'] ?? 'Workspace entitlement currently blocks this action.'));
}
/**
* @return array<string, mixed>
*/
public function decision(): array
{
return $this->decision;
}
}