mirror of
https://github.com/standardebooks/web.git
synced 2025-07-12 17:42:29 -04:00
Add type hints for remaining classes
This commit is contained in:
parent
d7718218ad
commit
783c09864f
35 changed files with 212 additions and 210 deletions
|
@ -5,13 +5,13 @@ use Safe\DateTime;
|
|||
* @property User $User
|
||||
*/
|
||||
class Patron extends PropertiesBase{
|
||||
public $UserId = null;
|
||||
public ?int $UserId = null;
|
||||
protected $_User = null;
|
||||
public $IsAnonymous;
|
||||
public $AlternateName;
|
||||
public $IsSubscribedToEmails;
|
||||
public $Created = null;
|
||||
public $Ended = null;
|
||||
public bool $IsAnonymous;
|
||||
public ?string $AlternateName;
|
||||
public bool $IsSubscribedToEmails;
|
||||
public ?DateTime $Created = null;
|
||||
public ?DateTime $Ended = null;
|
||||
|
||||
|
||||
// *******
|
||||
|
@ -54,8 +54,8 @@ class Patron extends PropertiesBase{
|
|||
private function SendWelcomeEmail(bool $isReturning): void{
|
||||
if($this->User !== null){
|
||||
$em = new Email();
|
||||
$em->To = $this->User->Email;
|
||||
$em->ToName = $this->User->Name;
|
||||
$em->To = $this->User->Email ?? '';
|
||||
$em->ToName = $this->User->Name ?? '';
|
||||
$em->From = EDITOR_IN_CHIEF_EMAIL_ADDRESS;
|
||||
$em->FromName = EDITOR_IN_CHIEF_NAME;
|
||||
$em->Subject = 'Thank you for supporting Standard Ebooks!';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue