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

57 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) 2021. 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\Models\Company;
2019-05-09 23:50:21 +02:00
use App\Models\Payment;
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.
*
2020-10-28 11:10:49 +01:00
* @param Payment $payment
* @param Company $company
2019-05-09 23:50:21 +02:00
*/
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
}
}