| 1 | <?php  | 
            ||
| 7 | class BadgeNotification extends Notification  | 
            ||
| 8 | { | 
            ||
| 9 | use Queueable;  | 
            ||
| 10 | |||
| 11 | public $badge;  | 
            ||
| 12 | |||
| 13 | /**  | 
            ||
| 14 | * Create a new notification instance.  | 
            ||
| 15 | */  | 
            ||
| 16 | public function __construct($badge)  | 
            ||
| 20 | |||
| 21 | /**  | 
            ||
| 22 | * Get the notification's delivery channels.  | 
            ||
| 23 | *  | 
            ||
| 24 | * @param mixed $notifiable  | 
            ||
| 25 | *  | 
            ||
| 26 | * @return array  | 
            ||
| 27 | */  | 
            ||
| 28 | public function via($notifiable): array  | 
            ||
| 32 | |||
| 33 | /**  | 
            ||
| 34 | * Get the array representation of the notification.  | 
            ||
| 35 | *  | 
            ||
| 36 | * @param mixed $notifiable  | 
            ||
| 37 | *  | 
            ||
| 38 | * @return array  | 
            ||
| 39 | */  | 
            ||
| 40 | public function toDatabase($notifiable): array  | 
            ||
| 49 | }  | 
            ||
| 50 | 
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.