@@ 5-51 (lines=47) @@ | ||
2 | ||
3 | namespace Illuminate\Notifications\Events; |
|
4 | ||
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 = []) |
|
45 | { |
|
46 | $this->channel = $channel; |
|
47 | $this->notifiable = $notifiable; |
|
48 | $this->notification = $notification; |
|
49 | $this->data = $data; |
|
50 | } |
|
51 | } |
@@ 5-51 (lines=47) @@ | ||
2 | ||
3 | namespace Illuminate\Notifications\Events; |
|
4 | ||
5 | class NotificationSent |
|
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 channel's response. |
|
30 | * |
|
31 | * @var mixed |
|
32 | */ |
|
33 | public $response; |
|
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 mixed $response |
|
42 | * @return void |
|
43 | */ |
|
44 | public function __construct($notifiable, $notification, $channel, $response = null) |
|
45 | { |
|
46 | $this->channel = $channel; |
|
47 | $this->response = $response; |
|
48 | $this->notifiable = $notifiable; |
|
49 | $this->notification = $notification; |
|
50 | } |
|
51 | } |
|
52 |