$blockingReasons */ public function __construct( public readonly string $anchorType, public readonly string $state, public readonly ?int $evidenceSnapshotId, public readonly ?string $targetRoute, public readonly bool $isCurrent, public readonly bool $isReleaseBound, public readonly bool $isCustomerSafe, public readonly bool $isTechnicalOnly, public readonly bool $isPartial, public readonly bool $isSuperseded, public readonly bool $isExpired, public readonly bool $canLink, public readonly bool $canViewTechnicalDetail, public readonly string $primaryReason, public readonly array $blockingReasons, public readonly string $displayLabel, ) {} /** * @return array{ * anchor_type:string, * state:string, * evidence_snapshot_id:int|null, * target_route:string|null, * is_current:bool, * is_release_bound:bool, * is_customer_safe:bool, * is_technical_only:bool, * is_partial:bool, * is_superseded:bool, * is_expired:bool, * can_link:bool, * can_view_technical_detail:bool, * primary_reason:string, * blocking_reasons:list, * display_label:string * } */ public function toArray(): array { return [ 'anchor_type' => $this->anchorType, 'state' => $this->state, 'evidence_snapshot_id' => $this->evidenceSnapshotId, 'target_route' => $this->targetRoute, 'is_current' => $this->isCurrent, 'is_release_bound' => $this->isReleaseBound, 'is_customer_safe' => $this->isCustomerSafe, 'is_technical_only' => $this->isTechnicalOnly, 'is_partial' => $this->isPartial, 'is_superseded' => $this->isSuperseded, 'is_expired' => $this->isExpired, 'can_link' => $this->canLink, 'can_view_technical_detail' => $this->canViewTechnicalDetail, 'primary_reason' => $this->primaryReason, 'blocking_reasons' => $this->blockingReasons, 'display_label' => $this->displayLabel, ]; } }