2017-01-30 20:40:43 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Events;
|
2015-03-31 19:42:37 +02:00
|
|
|
|
2016-07-03 18:11:58 +02:00
|
|
|
use App\Models\Invoice;
|
2015-03-31 19:42:37 +02:00
|
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
|
2016-07-03 18:11:58 +02:00
|
|
|
/**
|
2017-01-30 20:40:43 +01:00
|
|
|
* Class InvoiceWasEmailed.
|
2016-07-03 18:11:58 +02:00
|
|
|
*/
|
|
|
|
class InvoiceWasEmailed extends Event
|
|
|
|
{
|
|
|
|
use SerializesModels;
|
2015-03-31 19:42:37 +02:00
|
|
|
|
2016-07-03 18:11:58 +02:00
|
|
|
/**
|
|
|
|
* @var Invoice
|
|
|
|
*/
|
2015-03-31 20:50:58 +02:00
|
|
|
public $invoice;
|
2016-07-03 18:11:58 +02:00
|
|
|
|
2017-04-16 09:06:42 +02:00
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
public $notes;
|
|
|
|
|
2016-07-03 18:11:58 +02:00
|
|
|
/**
|
|
|
|
* Create a new event instance.
|
|
|
|
*
|
|
|
|
* @param Invoice $invoice
|
|
|
|
*/
|
2017-04-16 09:06:42 +02:00
|
|
|
public function __construct(Invoice $invoice, $notes)
|
2015-03-31 20:50:58 +02:00
|
|
|
{
|
|
|
|
$this->invoice = $invoice;
|
2017-04-16 09:06:42 +02:00
|
|
|
$this->notes = $notes;
|
2015-03-31 20:50:58 +02:00
|
|
|
}
|
2015-03-31 19:42:37 +02:00
|
|
|
}
|