1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-22 17:31:35 +02:00
invoiceninja/app/Services/Credit/GetCreditPdf.php

31 lines
648 B
PHP
Raw Normal View History

<?php
2020-07-01 03:06:40 +02:00
/**
* Invoice Ninja (https://invoiceninja.com).
2020-07-01 03:06:40 +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)
2020-07-01 03:06:40 +02:00
*
2021-06-16 08:58:16 +02:00
* @license https://www.elastic.co/licensing/elastic-license
2020-07-01 03:06:40 +02:00
*/
namespace App\Services\Credit;
2023-10-26 03:25:56 +02:00
use App\Jobs\Entity\CreateRawPdf;
2023-10-26 04:47:34 +02:00
use App\Models\CreditInvitation;
use App\Services\AbstractService;
class GetCreditPdf extends AbstractService
{
2023-10-26 03:25:56 +02:00
public function __construct(public CreditInvitation $invitation)
{
}
2020-02-18 21:56:21 +01:00
public function run()
{
2023-10-26 03:25:56 +02:00
return (new CreateRawPdf($this->invitation))->handle();
}
}