mirror of
https://github.com/standardebooks/web.git
synced 2025-07-07 15:20:32 -04:00
Add PropertyFromHttp trait and update codebase to use new pattern
This commit is contained in:
parent
c35c47b793
commit
acb30b897c
47 changed files with 851 additions and 527 deletions
|
@ -13,15 +13,17 @@ class NewsletterSubscription{
|
|||
public bool $IsSubscribedToNewsletter = false;
|
||||
public ?int $UserId = null;
|
||||
public DateTimeImmutable $Created;
|
||||
protected ?User $_User = null;
|
||||
protected ?string $_Url = null;
|
||||
|
||||
protected ?User $_User;
|
||||
protected string $_Url;
|
||||
|
||||
|
||||
// *******
|
||||
// GETTERS
|
||||
// *******
|
||||
|
||||
protected function GetUrl(): string{
|
||||
if($this->_Url === null){
|
||||
if(!isset($this->_Url)){
|
||||
$this->_Url = '/newsletter/subscriptions/' . $this->User->Uuid;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue