- Replace view-only row buttons with clickable rows (recordUrl)\n- Update action-surface contract slot to InspectAffordance + validator support\n- Add golden guard tests + contract doc\n- Update SpecKit constitution/templates to include inspection affordance rule
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) !== '';
|
|
}
|
|
}
|