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 $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;
}

View file

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