1 | <?php |
||
5 | class NotificationFailed |
||
6 | { |
||
7 | /** |
||
8 | * The notifiable entity who received the notification. |
||
9 | * |
||
10 | * @var mixed |
||
11 | */ |
||
12 | public $notifiable; |
||
13 | |||
14 | /** |
||
15 | * The notification instance. |
||
16 | * |
||
17 | * @var \Illuminate\Notifications\Notification |
||
18 | */ |
||
19 | public $notification; |
||
20 | |||
21 | /** |
||
22 | * The channel name. |
||
23 | * |
||
24 | * @var string |
||
25 | */ |
||
26 | public $channel; |
||
27 | |||
28 | /** |
||
29 | * The data needed to process this failure. |
||
30 | * |
||
31 | * @var array |
||
32 | */ |
||
33 | public $data = []; |
||
34 | |||
35 | /** |
||
36 | * Create a new event instance. |
||
37 | * |
||
38 | * @param mixed $notifiable |
||
39 | * @param \Illuminate\Notifications\Notification $notification |
||
40 | * @param string $channel |
||
41 | * @param array $data |
||
42 | * @return void |
||
|
|||
43 | */ |
||
44 | public function __construct($notifiable, $notification, $channel, $data = []) |
||
51 | } |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.