1 | <?php |
||
11 | class AttackDetected extends Notification implements ShouldQueue |
||
12 | { |
||
13 | use Queueable; |
||
14 | |||
15 | /** |
||
16 | * The log model. |
||
17 | * |
||
18 | * @var object |
||
19 | */ |
||
20 | public $log; |
||
21 | |||
22 | /** |
||
23 | * The notification config. |
||
24 | * |
||
25 | * @var object |
||
26 | */ |
||
27 | public $notifications; |
||
28 | |||
29 | /** |
||
30 | * Create a notification instance. |
||
31 | * |
||
32 | * @param object $log |
||
33 | */ |
||
34 | public function __construct($log) |
||
39 | |||
40 | /** |
||
41 | * Get the notification's channels. |
||
42 | * |
||
43 | * @param mixed $notifiable |
||
44 | * @return array|string |
||
45 | */ |
||
46 | public function via($notifiable) |
||
60 | |||
61 | /** |
||
62 | * Build the mail representation of the notification. |
||
63 | * |
||
64 | * @param mixed $notifiable |
||
65 | * @return \Illuminate\Notifications\Messages\MailMessage |
||
66 | */ |
||
67 | public function toMail($notifiable) |
||
87 | |||
88 | /** |
||
89 | * Get the Slack representation of the notification. |
||
90 | * |
||
91 | * @param mixed $notifiable |
||
92 | * @return SlackMessage |
||
93 | */ |
||
94 | public function toSlack($notifiable) |
||
114 | } |
||
115 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.