| Total Complexity | 4 |
| Total Lines | 55 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class AccountActivated extends Notification implements ShouldQueue |
||
| 12 | { |
||
| 13 | use Queueable; |
||
| 14 | /** |
||
| 15 | * @var Ministry |
||
| 16 | */ |
||
| 17 | private $ministry; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Create a new notification instance. |
||
| 21 | * |
||
| 22 | * @return void |
||
| 23 | */ |
||
| 24 | public function __construct(Ministry $ministry) |
||
| 25 | { |
||
| 26 | // |
||
| 27 | $this->ministry = $ministry; |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Get the notification's delivery channels. |
||
| 32 | * |
||
| 33 | * @param mixed $notifiable |
||
| 34 | * @return array |
||
| 35 | */ |
||
| 36 | public function via($notifiable) |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Get the mail representation of the notification. |
||
| 43 | * |
||
| 44 | * @param mixed $notifiable |
||
| 45 | * @return \Illuminate\Notifications\Messages\MailMessage |
||
| 46 | */ |
||
| 47 | public function toMail($notifiable) |
||
| 48 | { |
||
| 49 | return (new MailMessage) |
||
| 50 | ->greeting('Hello '.$this->ministry->name) |
||
| 51 | ->subject('Account activated') |
||
| 52 | ->line('Your FaithGen account has been activated.') |
||
| 53 | ->line('Please feel free to use our platform and always contact support if you miss something.') |
||
| 54 | ->line('Thank you for using our application!'); |
||
| 55 | } |
||
| 56 | |||
| 57 | /** |
||
| 58 | * Get the array representation of the notification. |
||
| 59 | * |
||
| 60 | * @param mixed $notifiable |
||
| 61 | * @return array |
||
| 62 | */ |
||
| 63 | public function toArray($notifiable) |
||
| 66 | // |
||
| 67 | ]; |
||
| 70 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.