2021-10-27 12:48:07 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Events;
|
|
|
|
|
|
|
|
use App\Models\NhInsurancesSubscription;
|
|
|
|
use App\Traits\Helper;
|
|
|
|
|
|
|
|
class InsuranceEvent extends Event
|
|
|
|
{
|
|
|
|
use Helper;
|
|
|
|
|
|
|
|
public $subscription;
|
|
|
|
public $mailTitle;
|
|
|
|
public $mailMessage;
|
|
|
|
public $notification;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Create a new event instance.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
2022-02-08 08:36:06 +00:00
|
|
|
public function __construct($subscription, string $mailTitle, string $mailMessage,
|
|
|
|
string $notification = null)
|
2021-10-27 12:48:07 +00:00
|
|
|
{
|
|
|
|
//
|
|
|
|
$this->subscription = $subscription;
|
|
|
|
$this->mailTitle = $mailTitle;
|
|
|
|
$this->mailMessage = $mailMessage;
|
|
|
|
$this->notification = $notification;
|
|
|
|
}
|
|
|
|
}
|