feat: add search for a tld via RDAP

This commit is contained in:
Maël Gangloff
2024-12-20 17:43:35 +01:00
parent 7c606e2697
commit 1dc16d769b
9 changed files with 86 additions and 21 deletions

View File

@@ -107,7 +107,7 @@ class Tld
public function getTld(): ?string
{
return $this->tld;
return '' === $this->tld ? '.' : $this->tld;
}
public function setTld(string $tld): static
@@ -194,8 +194,10 @@ class Tld
return $this->type;
}
public function setType(?TldType $type): void
public function setType(?TldType $type): static
{
$this->type = $type;
return $this;
}
}