invoiceninja/app/Events/PaymentWasRefunded.php

34 lines
561 B
PHP
Raw Permalink Normal View History

2017-01-30 21:40:43 +02:00
<?php
namespace App\Events;
2016-04-23 16:40:19 -04:00
use App\Models\Payment;
2016-04-23 16:40:19 -04:00
use Illuminate\Queue\SerializesModels;
/**
2017-01-30 21:40:43 +02:00
* Class PaymentWasRefunded.
*/
class PaymentWasRefunded extends Event
{
use SerializesModels;
2016-04-23 16:40:19 -04:00
/**
* @var Payment
*/
2016-04-23 16:40:19 -04:00
public $payment;
2016-04-23 16:40:19 -04:00
public $refundAmount;
/**
* Create a new event instance.
*
* @param Payment $payment
* @param $refundAmount
*/
public function __construct(Payment $payment, $refundAmount)
2016-04-23 16:40:19 -04:00
{
$this->payment = $payment;
$this->refundAmount = $refundAmount;
}
}