1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-11 05:32:39 +01:00
invoiceninja/app/Jobs/Payment/PaymentNotification.php

58 lines
1.2 KiB
PHP
Raw Normal View History

2019-05-09 23:50:21 +02:00
<?php
2019-05-11 05:32:07 +02:00
/**
* Invoice Ninja (https://invoiceninja.com).
2019-05-11 05:32:07 +02:00
*
* @link https://github.com/invoiceninja/invoiceninja source repository
*
* @copyright Copyright (c) 2020. Invoice Ninja LLC (https://invoiceninja.com)
2019-05-11 05:32:07 +02:00
*
* @license https://opensource.org/licenses/AAL
*/
2019-05-09 23:50:21 +02:00
namespace App\Jobs\Payment;
use App\Libraries\MultiDB;
use App\Models\Company;
2019-05-09 23:50:21 +02:00
use App\Models\Payment;
use App\Repositories\InvoiceRepository;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
class PaymentNotification implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
public $payment;
private $company;
2019-05-09 23:50:21 +02:00
/**
* Create a new job instance.
*
* @return void
*/
public function __construct(Payment $payment, Company $company)
2019-05-09 23:50:21 +02:00
{
$this->payment = $payment;
$this->company = $company;
2019-05-09 23:50:21 +02:00
}
/**
* Execute the job.
*
*
2019-05-09 23:50:21 +02:00
* @return void
*/
public function handle()
{
//notification for the payment.
//
//could mean a email, sms, slack, push
}
}