Added check for domain when matching an existing short URL

This commit is contained in:
Alejandro Celaya
2019-10-01 22:15:11 +02:00
parent fd1fe90731
commit 25f64a2fc4
2 changed files with 9 additions and 6 deletions

View File

@@ -151,6 +151,11 @@ final class ShortUrlMeta
return (bool) $this->findIfExists;
}
public function hasDomain(): bool
{
return $this->domain !== null;
}
public function getDomain(): ?string
{
return $this->domain;