invoiceninja/app/Events/Credit/CreditWasRestored.php

51 lines
1 KiB
PHP
Raw Permalink Normal View History

2020-07-22 17:53:14 +10:00
<?php
/**
* Invoice Ninja (https://invoiceninja.com).
2020-07-22 17:53:14 +10:00
*
* @link https://github.com/invoiceninja/invoiceninja source repository
*
2023-01-29 09:21:40 +11:00
* @copyright Copyright (c) 2023. Invoice Ninja LLC (https://invoiceninja.com)
2020-07-22 17:53:14 +10:00
*
2021-06-16 16:58:16 +10:00
* @license https://www.elastic.co/licensing/elastic-license
2020-07-22 17:53:14 +10:00
*/
namespace App\Events\Credit;
2020-11-03 23:35:05 +11:00
use App\Models\Company;
2020-07-22 17:53:14 +10:00
use App\Models\Credit;
use Illuminate\Queue\SerializesModels;
/**
* Class CreditWasRestored.
*/
class CreditWasRestored
{
use SerializesModels;
/**
* @var Client
*/
public $credit;
public $company;
public $event_vars;
2020-11-03 21:04:15 +11:00
public $fromDeleted;
2020-07-22 17:53:14 +10:00
/**
* Create a new event instance.
*
2020-10-28 21:10:49 +11:00
* @param Credit $credit
* @param Company $company
* @param array $event_vars
2020-07-22 17:53:14 +10:00
*/
2020-11-03 21:04:15 +11:00
public function __construct(Credit $credit, $fromDeleted, Company $company, array $event_vars)
2020-07-22 17:53:14 +10:00
{
$this->credit = $credit;
2020-11-03 21:04:15 +11:00
$this->fromDeleted = $fromDeleted;
2020-07-22 17:53:14 +10:00
$this->company = $company;
$this->event_vars = $event_vars;
}
}