use Canvas\Contracts\Notifications\NotificationInterfase;
8
use Baka\Mail\Message;
9
use Phalcon\Di;
10
11
class Subscription extends Notification implements NotificationInterfase
12
{
13
//protected $useQueue = true;
14
15
/**
16
* Notification msg.
17
*
18
* @return string
19
*/
20
public function message(): string
21
{
22
$app = Di::getDefault()->getApp();
23
24
return 'Hi ' . $this->toUser->firstname . ' your subscription to the App ' . $app->name . ' will expire at ' . $this->entity->subscription->trial_ends_at;