mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
feat: add IANA fields for accredited registrars
This commit is contained in:
@@ -115,12 +115,13 @@ class Tld
|
||||
|
||||
public function getTld(): ?string
|
||||
{
|
||||
return '' === $this->tld ? '.' : $this->tld;
|
||||
return $this->tld;
|
||||
}
|
||||
|
||||
public function setTld(string $tld): static
|
||||
{
|
||||
$this->tld = RDAPService::convertToIdn($tld);
|
||||
if($this->tld === '') $this->tld = '.';
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user