Correct return type and typo in GetUrl()

This commit is contained in:
Mike Colagrosso 2024-10-22 17:12:14 -06:00 committed by Alex Cabal
parent 7253ad41ca
commit 432723eafe

View file

@ -13,9 +13,9 @@ class Collection{
public ?CollectionType $Type = null;
protected ?string $_Url = null;
protected function GetUrl(): ?string{
protected function GetUrl(): string{
if($this->_Url === null){
$this->Url = '/collections/' . $this->UrlName;
$this->_Url = '/collections/' . $this->UrlName;
}
return $this->_Url;