-
Notifications
You must be signed in to change notification settings - Fork 11k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create NotificationFailed event (#14874)
- Loading branch information
1 parent
ade941e
commit deeada0
Showing
1 changed file
with
51 additions
and
0 deletions.
There are no files selected for viewing
51 changes: 51 additions & 0 deletions
51
src/Illuminate/Notifications/Events/NotificationFailed.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<?php | ||
|
||
namespace Illuminate\Notifications\Events; | ||
|
||
class NotificationFailed | ||
{ | ||
/** | ||
* The notifiable entity who received the notification. | ||
* | ||
* @var mixed | ||
*/ | ||
public $notifiable; | ||
|
||
/** | ||
* The notification instance. | ||
* | ||
* @var \Illuminate\Notifications\Notification | ||
*/ | ||
public $notification; | ||
|
||
/** | ||
* The channel name. | ||
* | ||
* @var string | ||
*/ | ||
public $channel; | ||
|
||
/** | ||
* The data needed to process this failure. | ||
* | ||
* @var array | ||
*/ | ||
public $data = []; | ||
|
||
/** | ||
* Create a new event instance. | ||
* | ||
* @param mixed $notifiable | ||
* @param \Illuminate\Notifications\Notification $notification | ||
* @param string $channel | ||
* @param array $data | ||
* @return void | ||
*/ | ||
public function __construct($notifiable, $notification, $channel, $data = []) | ||
{ | ||
$this->channel = $channel; | ||
$this->notifiable = $notifiable; | ||
$this->notification = $notification; | ||
$this->data = $data; | ||
} | ||
} |