invoiceninja/app/Events/Payment/PaymentWasEmailedAndFailed.php

56 lines
1.2 KiB
PHP
Raw Normal View History

<?php
/**
* Invoice Ninja (https://invoiceninja.com).
*
* @link https://github.com/invoiceninja/invoiceninja source repository
*
* @copyright Copyright (c) 2021. Invoice Ninja LLC (https://invoiceninja.com)
*
2021-06-16 16:58:16 +10:00
* @license https://www.elastic.co/licensing/elastic-license
*/
namespace App\Events\Payment;
2020-11-12 14:04:27 +11:00
use App\Models\Company;
use App\Models\Payment;
2020-11-12 14:04:27 +11:00
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
/**
2020-11-12 14:04:27 +11:00
* Class PaymentWasEmailedAndFailed.
*/
class PaymentWasEmailedAndFailed
{
2020-11-12 14:04:27 +11:00
use Dispatchable, InteractsWithSockets, SerializesModels;
/**
* @var Payment
*/
public $payment;
public $errors;
2020-06-30 09:35:17 +10:00
public $company;
2020-07-08 22:02:16 +10:00
public $event_vars;
/**
* PaymentWasEmailedAndFailed constructor.
* @param Payment $payment
2020-10-28 21:10:49 +11:00
* @param $company
2021-02-18 10:51:56 +11:00
* @param string $errors
2020-10-28 21:10:49 +11:00
* @param array $event_vars
*/
2021-02-18 10:51:56 +11:00
public function __construct(Payment $payment, Company $company, string $errors, array $event_vars)
{
$this->payment = $payment;
$this->errors = $errors;
2020-06-30 09:35:17 +10:00
$this->company = $company;
2020-07-08 22:02:16 +10:00
$this->event_vars = $event_vars;
}
}