mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
feat: add search for a tld via RDAP
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user