1 | <?php |
||
11 | class MentionNotification extends Notification implements ShouldQueue |
||
12 | { |
||
13 | use Queueable; |
||
14 | |||
15 | /** |
||
16 | * The model instance. |
||
17 | * |
||
18 | * @var \Xetaravel\Models\Model |
||
19 | */ |
||
20 | public $model; |
||
21 | |||
22 | /** |
||
23 | * Create a new notification instance. |
||
24 | * |
||
25 | * @param \Xetaravel\Models\Model $model |
||
26 | */ |
||
27 | public function __construct($model) |
||
31 | |||
32 | /** |
||
33 | * Get the notification's delivery channels. |
||
34 | * |
||
35 | * @param mixed $notifiable |
||
36 | * |
||
37 | * @return array |
||
38 | */ |
||
39 | public function via($notifiable): array |
||
43 | |||
44 | /** |
||
45 | * Get the array representation of the notification. |
||
46 | * |
||
47 | * @param mixed $notifiable |
||
48 | * |
||
49 | * @return array |
||
50 | */ |
||
51 | public function toDatabase($notifiable): array |
||
55 | |||
56 | /** |
||
57 | * Parse the instance of the model and build the array. |
||
58 | * |
||
59 | * @param array $data |
||
60 | * |
||
61 | * @return array |
||
62 | */ |
||
63 | protected function parseInstance(array $data = []) |
||
96 | } |
||
97 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.