Name = $name; $this->UrlName = Formatter::MakeUrlSafe($this->Name); $this->Url = '/collections/' . $this->UrlName; } public function GetSortedName(): string{ return preg_replace('/^(the|and|a|)\s/ius', '', $this->Name); } }