| Total Complexity | 5 |
| Total Lines | 58 |
| Duplicated Lines | 0 % |
| Coverage | 94.44% |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class AccountCreated extends Notification |
||
| 11 | { |
||
| 12 | use Queueable; |
||
| 13 | |||
| 14 | protected $user; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * AccountCreated constructor. |
||
| 18 | * @param User $user |
||
| 19 | */ |
||
| 20 | 1 | public function __construct(User $user) |
|
| 21 | { |
||
| 22 | 1 | $this->user = $user; |
|
| 23 | 1 | } |
|
| 24 | |||
| 25 | |||
| 26 | /** |
||
| 27 | * Get the notification's delivery channels. |
||
| 28 | * |
||
| 29 | * @param mixed $notifiable |
||
| 30 | * @return array |
||
| 31 | */ |
||
| 32 | 1 | public function via($notifiable) |
|
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Get the mail representation of the notification. |
||
| 39 | * |
||
| 40 | * @param mixed $notifiable |
||
| 41 | * @return \Illuminate\Notifications\Messages\MailMessage |
||
| 42 | */ |
||
| 43 | 1 | public function toMail($notifiable) |
|
| 57 | } |
||
| 58 | |||
| 59 | /** |
||
| 60 | * Get the array representation of the notification. |
||
| 61 | * |
||
| 62 | * @param mixed $notifiable |
||
| 63 | * @return array |
||
| 64 | */ |
||
| 65 | public function toArray($notifiable) |
||
| 72 |