2020-06-24 13:49:06 +02:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Invoice Ninja (https://invoiceninja.com)
|
|
|
|
*
|
|
|
|
* @link https://github.com/invoiceninja/invoiceninja source repository
|
|
|
|
*
|
|
|
|
* @copyright Copyright (c) 2020. Invoice Ninja LLC (https://invoiceninja.com)
|
|
|
|
*
|
|
|
|
* @license https://opensource.org/licenses/AAL
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace App\Events\Document;
|
|
|
|
|
|
|
|
use App\Models\Document;
|
|
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Class DocumentWasCreated.
|
|
|
|
*/
|
|
|
|
class DocumentWasCreated
|
|
|
|
{
|
|
|
|
use SerializesModels;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var Document
|
|
|
|
*/
|
|
|
|
public $document;
|
|
|
|
|
2020-06-30 01:35:17 +02:00
|
|
|
public $company;
|
2020-06-24 13:49:06 +02:00
|
|
|
/**
|
|
|
|
* Create a new event instance.
|
|
|
|
*
|
|
|
|
* @param Document $document
|
|
|
|
*/
|
2020-06-30 01:35:17 +02:00
|
|
|
public function __construct(Document $document, $company)
|
2020-06-24 13:49:06 +02:00
|
|
|
{
|
|
|
|
$this->document = $document;
|
2020-06-30 01:35:17 +02:00
|
|
|
$this->company = $company;
|
2020-06-24 13:49:06 +02:00
|
|
|
}
|
|
|
|
}
|