22 lines
450 B
PHP
22 lines
450 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Support\Ui\ActionSurface;
|
|
|
|
use App\Support\Ui\ActionSurface\Enums\ActionSurfaceSlot;
|
|
|
|
final class ActionSurfaceExemption
|
|
{
|
|
public function __construct(
|
|
public readonly ActionSurfaceSlot $slot,
|
|
public readonly string $reason,
|
|
public readonly ?string $trackingRef = null,
|
|
) {}
|
|
|
|
public function hasReason(): bool
|
|
{
|
|
return trim($this->reason) !== '';
|
|
}
|
|
}
|