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