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#
| Method | Description |
|---|---|
->__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,
)| Parameter | Type | Description |
|---|---|---|
$manager | QuittioManager | |
$data | InvoiceData | |
$options | RenderOptions | |
$connection | ?string = null | |
$queue | ?string = null |
save()#
public function save(?string $disk = null, ?string $path = null): RenderInvoiceDispatches 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.
| Parameter | Type | Description |
|---|---|---|
$disk | ?string = null | |
$path | ?string = null |
- Returns
RenderInvoice