Total Complexity | 2 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
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; |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * Email body. |
||
29 | * |
||
30 | * @return Message|null |
||
31 | */ |
||
32 | public function toMail(): ?Message |
||
37 | } |
||
38 | } |
||
39 |