Skip to content

Commit

Permalink
Create NotificationFailed event (#14874)
Browse files Browse the repository at this point in the history
  • Loading branch information
barryvdh authored and taylorotwell committed Aug 18, 2016
1 parent ade941e commit deeada0
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions src/Illuminate/Notifications/Events/NotificationFailed.php
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;
}
}

0 comments on commit deeada0

Please sign in to comment.