feat: add DNSSEC badge in domain response

This commit is contained in:
Maël Gangloff
2024-12-30 14:31:31 +01:00
parent 51593f31d0
commit 363d7a97f3
6 changed files with 87 additions and 22 deletions

View File

@@ -117,6 +117,10 @@ class Domain
#[SerializedName('oldStatus')]
private Collection $domainStatuses;
#[ORM\Column(nullable: false)]
#[Groups(['domain:item'])]
private ?bool $delegationSigned = null;
private const IMPORTANT_EVENTS = [EventAction::Deletion->value, EventAction::Expiration->value];
private const IMPORTANT_STATUS = [
'redemption period',
@@ -432,8 +436,22 @@ class Domain
return $this->rdapServer;
}
public function setRdapServer(?RdapServer $rdapServer): void
public function setRdapServer(?RdapServer $rdapServer): static
{
$this->rdapServer = $rdapServer;
return $this;
}
public function isDelegationSigned(): ?bool
{
return $this->delegationSigned;
}
public function setDelegationSigned(bool $delegationSigned): static
{
$this->delegationSigned = $delegationSigned;
return $this;
}
}