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

@ -1,7 +0,0 @@
<?
class Artwork extends PropertiesBase{
public $ArtworkId;
public $Title;
protected $DisplayTitle = null;
}

View file

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

View file

@ -6,7 +6,7 @@ use Safe\DateTime;
*/ */
class Patron extends PropertiesBase{ class Patron extends PropertiesBase{
public $UserId = null; public $UserId = null;
protected $User = null; protected $_User = null;
public $IsAnonymous; public $IsAnonymous;
public $AlternateName; public $AlternateName;
public $IsSubscribedToEmails; public $IsSubscribedToEmails;