2015-10-28 20:22:07 +01:00
|
|
|
<?php namespace App\Events;
|
|
|
|
|
2016-07-03 18:11:58 +02:00
|
|
|
use App\Models\Invitation;
|
|
|
|
use App\Models\Invoice;
|
2015-10-28 20:22:07 +01:00
|
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
|
2016-07-03 18:11:58 +02:00
|
|
|
class QuoteInvitationWasApproved extends Event
|
|
|
|
{
|
|
|
|
use SerializesModels;
|
2015-10-28 20:22:07 +01:00
|
|
|
|
|
|
|
public $quote;
|
2016-07-03 18:11:58 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @var Invitation
|
|
|
|
*/
|
2015-10-28 20:22:07 +01:00
|
|
|
public $invitation;
|
2016-07-03 18:11:58 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Create a new event instance.
|
|
|
|
*
|
|
|
|
* @param $quote
|
|
|
|
* @param Invoice $invoice
|
|
|
|
* @param Invitation $invitation
|
|
|
|
*/
|
2016-07-20 09:03:46 +02:00
|
|
|
public function __construct(Invoice $quote, Invitation $invitation)
|
2015-10-28 20:22:07 +01:00
|
|
|
{
|
|
|
|
$this->quote = $quote;
|
|
|
|
$this->invitation = $invitation;
|
|
|
|
}
|
|
|
|
}
|