invoiceninja/app/Events/InvoiceWasRestored.php

32 lines
558 B
PHP
Raw Normal View History

2015-03-31 20:42:37 +03:00
<?php namespace App\Events;
use App\Models\Invoice;
2015-03-31 20:42:37 +03:00
use Illuminate\Queue\SerializesModels;
/**
* Class InvoiceWasRestored
*/
class InvoiceWasRestored extends Event
{
use SerializesModels;
2015-10-30 00:27:26 +02:00
/**
* @var Invoice
*/
2015-03-31 21:50:58 +03:00
public $invoice;
2015-10-30 00:27:26 +02:00
public $fromDeleted;
/**
* Create a new event instance.
*
* @param Invoice $invoice
* @param $fromDeleted
*/
public function __construct(Invoice $invoice, $fromDeleted)
2015-03-31 21:50:58 +03:00
{
$this->invoice = $invoice;
2015-10-30 00:27:26 +02:00
$this->fromDeleted = $fromDeleted;
2015-03-31 21:50:58 +03:00
}
2015-03-31 20:42:37 +03:00
}