Quittio 0.3 API

PendingDocument
in package
uses Macroable

FinalYes

Fluent render call for documents: Quittio::document($quote)->locale('de')->render().

Table of Contents

Methods

__construct()  : mixed
country()  : static
Leading country pack of this call (ISO 3166-1 alpha-2), instead of the seller's country.
data()  : DocumentData
The document of this call, as passed (not calculated).
htmlOnly()  : static
Renders the template only, without PDF (format "html").
locale()  : static
Locale of this call; wins over the document locale and the configuration.
option()  : static
Output option of this call, e.g. option('fold_marks', false); see the output configuration.
options()  : RenderOptions
The options collected so far, as passed to the render run.
presentation()  : static
Design defaults of this call; the document's own presentation wins.
queue()  : QueuedDocument
Renders in a queued job: Quittio::document($quote)->queue()->save('documents', $path).
render()  : RenderedDocument
Calculates and renders the document with the events DocumentRendering and DocumentRendered, see Quittio::renderDocument().
template()  : static
Template of this call; the same selection rules as for invoices.

Methods

country()

Leading country pack of this call (ISO 3166-1 alpha-2), instead of the seller's country.

public country(string $country) : static
Parameters
$country : string
Return values
static

htmlOnly()

Renders the template only, without PDF (format "html").

public htmlOnly() : static
Return values
static

locale()

Locale of this call; wins over the document locale and the configuration.

public locale(string $locale) : static
Parameters
$locale : string
Return values
static

option()

Output option of this call, e.g. option('fold_marks', false); see the output configuration.

public option(string $key, mixed $value) : static
Parameters
$key : string
$value : mixed
Return values
static

presentation()

Design defaults of this call; the document's own presentation wins.

public presentation(Presentation $presentation) : static
Parameters
$presentation : Presentation
Return values
static

queue()

Renders in a queued job: Quittio::document($quote)->queue()->save('documents', $path).

public queue([string|null $connection = null ][, string|null $queue = null ]) : QueuedDocument
Parameters
$connection : string|null = null
$queue : string|null = null
Return values
QueuedDocument

template()

Template of this call; the same selection rules as for invoices.

public template(string $template) : static
Parameters
$template : string
Return values
static
On this page

Search results