| Total Complexity | 3 |
| Total Lines | 52 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class GenericDatabaseNotification extends Notification |
||
| 11 | { |
||
| 12 | use Queueable; |
||
| 13 | protected $message; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Create a new notification instance. |
||
| 17 | * |
||
| 18 | * @return void |
||
| 19 | */ |
||
| 20 | 24 | public function __construct($message) |
|
| 21 | { |
||
| 22 | 24 | $this->message = $message; |
|
| 23 | 24 | } |
|
| 24 | |||
| 25 | /** |
||
| 26 | * Get the notification's delivery channels. |
||
| 27 | * |
||
| 28 | * @param mixed $notifiable |
||
| 29 | * @return array |
||
| 30 | */ |
||
| 31 | 24 | public function via($notifiable) |
|
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Get the mail representation of the notification. |
||
| 38 | * |
||
| 39 | * @param mixed $notifiable |
||
| 40 | * @return \Illuminate\Notifications\Messages\MailMessage |
||
| 41 | */ |
||
| 42 | // public function toMail($notifiable) |
||
| 43 | // { |
||
| 44 | // return (new MailMessage) |
||
| 45 | // ->line('The introduction to the notification.') |
||
| 46 | // ->action('Notification Action', url('/')) |
||
| 47 | // ->line('Thank you for using our application!'); |
||
| 48 | // } |
||
| 49 | |||
| 50 | /** |
||
| 51 | * Get the array representation of the notification. |
||
| 52 | * |
||
| 53 | * @param mixed $notifiable |
||
| 54 | * @return array |
||
| 55 | */ |
||
| 56 | 24 | public function toArray($notifiable) |
|
| 65 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.