mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-14 15:13:29 +01:00
0f661495db
* Create 'Credits' module * Various fixes on Credit module * Fix MarkCreditPaid factory
30 lines
592 B
PHP
30 lines
592 B
PHP
<?php
|
|
|
|
namespace App\Events\Credit;
|
|
|
|
use App\Models\Company;
|
|
use App\Models\Credit;
|
|
use Illuminate\Broadcasting\InteractsWithSockets;
|
|
use Illuminate\Foundation\Events\Dispatchable;
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
class CreditWasCreated
|
|
{
|
|
use Dispatchable, InteractsWithSockets, SerializesModels;
|
|
|
|
public $credit;
|
|
|
|
public $company;
|
|
|
|
/**
|
|
* Create a new event instance.
|
|
*
|
|
* @param Credit $credit
|
|
*/
|
|
public function __construct(Credit $credit, Company $company)
|
|
{
|
|
$this->credit = $credit;
|
|
$this->company = $company;
|
|
}
|
|
}
|