2017-01-30 20:40:43 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Events;
|
2016-01-06 20:52:09 +01:00
|
|
|
|
2016-07-03 18:11:58 +02:00
|
|
|
use App\Models\Expense;
|
2016-01-06 20:52:09 +01:00
|
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
|
2016-07-03 18:11:58 +02:00
|
|
|
/**
|
2017-01-30 20:40:43 +01:00
|
|
|
* Class ExpenseWasDeleted.
|
2016-07-03 18:11:58 +02:00
|
|
|
*/
|
|
|
|
class ExpenseWasDeleted extends Event
|
|
|
|
{
|
|
|
|
use SerializesModels;
|
2016-01-06 20:52:09 +01:00
|
|
|
|
2016-07-03 18:11:58 +02:00
|
|
|
/**
|
|
|
|
* @var Expense
|
|
|
|
*/
|
2016-01-06 20:52:09 +01:00
|
|
|
public $expense;
|
2016-07-03 18:11:58 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Create a new event instance.
|
|
|
|
*
|
|
|
|
* @param Expense $expense
|
|
|
|
*/
|
|
|
|
public function __construct(Expense $expense)
|
2016-01-06 20:52:09 +01:00
|
|
|
{
|
|
|
|
$this->expense = $expense;
|
|
|
|
}
|
|
|
|
}
|