1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-21 17:01:33 +02:00
invoiceninja/app/Events/Quote/QuoteWasApproved.php

49 lines
1.1 KiB
PHP
Raw Normal View History

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