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

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
*
2022-04-27 05:20:41 +02:00
* @copyright Copyright (c) 2022. Invoice Ninja LLC (https://invoiceninja.com)
2019-05-11 05:32:07 +02:00
*
2021-06-16 08:58:16 +02:00
* @license https://www.elastic.co/licensing/elastic-license
2019-05-11 05:32:07 +02:00
*/
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
}
}