Zum Inhalt springen

API reference / Quittio \ Laravel \ Rendering

QueuedInvoice

final readonly class in quittio/laravel

Quittio\Laravel\Rendering\QueuedInvoice · Source

Pending queued render; dispatching happens on save().

Methods#

MethodDescription
->__construct()
->save()Dispatches a RenderInvoice job that renders the invoice and stores the main output on $disk (default: quittio.storage.disk) at $path (default: the file name; a path ending in "/" gets the file name appended). Uses the connection and queue given to queue(), else those of quittio.queue; inside a database transaction the job is dispatched after the commit unless quittio.queue.after_commit is false. Returns the dispatched job.

__construct()#

public function __construct(
    QuittioManager $manager,
    InvoiceData $data,
    RenderOptions $options,
    ?string $connection = null,
    ?string $queue = null,
)
ParameterTypeDescription
$managerQuittioManager
$dataInvoiceData
$optionsRenderOptions
$connection?string = null
$queue?string = null

save()#

public function save(?string $disk = null, ?string $path = null): RenderInvoice

Dispatches a RenderInvoice job that renders the invoice and stores the main output on $disk (default: quittio.storage.disk) at $path (default: the file name; a path ending in "/" gets the file name appended). Uses the connection and queue given to queue(), else those of quittio.queue; inside a database transaction the job is dispatched after the commit unless quittio.queue.after_commit is false. Returns the dispatched job.

ParameterTypeDescription
$disk?string = null
$path?string = null
Returns
RenderInvoice

Die Open-Core-Pakete stehen unter der MIT-Lizenz. Die rechtlichen Formulierungen der Länderpakete sind mit einer Steuerberatung abzustimmen.