invoiceninja/app/Events/Quote/QuoteWasApproved.php

49 lines
1.1 KiB
PHP
Raw Normal View History

<?php
2020-07-08 22:02:16 +10:00
/**
* Invoice Ninja (https://invoiceninja.com).
2020-07-08 22:02:16 +10:00
*
* @link https://github.com/invoiceninja/invoiceninja source repository
*
2022-04-27 13:20:41 +10:00
* @copyright Copyright (c) 2022. Invoice Ninja LLC (https://invoiceninja.com)
2020-07-08 22:02:16 +10:00
*
2021-06-16 16:58:16 +10:00
* @license https://www.elastic.co/licensing/elastic-license
2020-07-08 22:02:16 +10:00
*/
namespace App\Events\Quote;
2020-08-24 21:21:35 +10:00
use App\Models\ClientContact;
2020-07-08 22:02:16 +10:00
use App\Models\Company;
use App\Models\Quote;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
class QuoteWasApproved
{
use Dispatchable, InteractsWithSockets, SerializesModels;
2020-07-22 17:53:14 +10:00
public $contact;
public $quote;
2020-06-30 09:35:17 +10:00
public $company;
2020-07-08 22:02:16 +10:00
public $event_vars;
/**
* Create a new event instance.
*
2020-10-28 21:10:49 +11:00
* @param ClientContact $contact
* @param Quote $quote
* @param Company $company
* @param array $event_vars
*/
2020-07-22 17:53:14 +10:00
public function __construct(ClientContact $contact, Quote $quote, Company $company, array $event_vars)
{
2020-07-22 17:53:14 +10:00
$this->contact = $contact;
$this->quote = $quote;
2020-06-30 09:35:17 +10:00
$this->company = $company;
2020-07-08 22:02:16 +10:00
$this->event_vars = $event_vars;
}
}