Some checks failed
Main Confidence / confidence (push) Failing after 53s
Automated commit and PR created by Copilot per user request. Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de> Reviewed-on: #287
24 lines
551 B
PHP
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;
|
|
}
|
|
} |