mirror of
https://github.com/standardebooks/web.git
synced 2025-07-08 07:40:39 -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
|
@ -6,12 +6,12 @@ use Safe\DateTime;
|
|||
* @property string $Url
|
||||
*/
|
||||
class NewsletterSubscription extends PropertiesBase{
|
||||
public $IsConfirmed = false;
|
||||
public $IsSubscribedToSummary;
|
||||
public $IsSubscribedToNewsletter;
|
||||
public $UserId;
|
||||
public bool $IsConfirmed = false;
|
||||
public bool $IsSubscribedToSummary;
|
||||
public bool $IsSubscribedToNewsletter;
|
||||
public int $UserId;
|
||||
public DateTime $Created;
|
||||
protected $_User;
|
||||
public $Created;
|
||||
protected $_Url = null;
|
||||
|
||||
// *******
|
||||
|
@ -85,8 +85,8 @@ class NewsletterSubscription extends PropertiesBase{
|
|||
public function SendConfirmationEmail(): void{
|
||||
$em = new Email(true);
|
||||
$em->PostmarkStream = EMAIL_POSTMARK_STREAM_BROADCAST;
|
||||
$em->To = $this->User->Email;
|
||||
if($this->User->Name != ''){
|
||||
$em->To = $this->User->Email ?? '';
|
||||
if($this->User->Name !== null && $this->User->Name != ''){
|
||||
$em->ToName = $this->User->Name;
|
||||
}
|
||||
$em->Subject = 'Action required: confirm your newsletter subscription';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue