Fix some naming errors and code cleanup

This commit is contained in:
Alex Cabal 2022-07-02 16:50:59 -05:00
parent 3fa9592e6d
commit b48a788430
3 changed files with 5 additions and 12 deletions

View file

@ -15,18 +15,18 @@ class NewsletterSubscriber extends PropertiesBase{
public $IsSubscribedToSummary = true;
public $IsSubscribedToNewsletter = true;
public $Created;
protected $Url = null;
protected $_Url = null;
// *******
// GETTERS
// *******
protected function GetUrl(): string{
if($this->Url === null){
$this->Url = SITE_URL . '/newsletter/subscribers/' . $this->Uuid;
if($this->_Url === null){
$this->_Url = SITE_URL . '/newsletter/subscribers/' . $this->Uuid;
}
return $this->Url;
return $this->_Url;
}