1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-15 23:52:33 +01:00
invoiceninja/app/Jobs/Payment/PaymentNotification.php

56 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
*
2023-01-28 23:21:40 +01:00
* @copyright Copyright (c) 2023. 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
}
}