PendingDocument
in package
FinalYes
Fluent render call for documents: Quittio::document($quote)->locale('de')->render().
Table of Contents
Methods
- __construct() : mixed
- country() : self
- Leading country pack of this call (ISO 3166-1 alpha-2), instead of the seller's country.
- htmlOnly() : self
- Renders the template only, without PDF (format "html").
- locale() : self
- Locale of this call; wins over the document locale and the configuration.
- option() : self
- Output option of this call, e.g. option('fold_marks', false); see the output configuration.
- presentation() : self
- Design defaults of this call; the document's own presentation wins.
- render() : RenderedDocument
- Calculates and renders the document, see Quittio::renderDocument().
- template() : self
- Template of this call; the same selection rules as for invoices.
Methods
__construct()
public
__construct(Quittio $quittio, DocumentData $data) : mixed
Parameters
- $quittio : Quittio
- $data : DocumentData
country()
Leading country pack of this call (ISO 3166-1 alpha-2), instead of the seller's country.
public
country(string $country) : self
Parameters
- $country : string
Return values
selfhtmlOnly()
Renders the template only, without PDF (format "html").
public
htmlOnly() : self
Return values
selflocale()
Locale of this call; wins over the document locale and the configuration.
public
locale(string $locale) : self
Parameters
- $locale : string
Return values
selfoption()
Output option of this call, e.g. option('fold_marks', false); see the output configuration.
public
option(string $key, mixed $value) : self
Parameters
- $key : string
- $value : mixed
Return values
selfpresentation()
Design defaults of this call; the document's own presentation wins.
public
presentation(Presentation $presentation) : self
Parameters
- $presentation : Presentation
Return values
selfrender()
Calculates and renders the document, see Quittio::renderDocument().
public
render() : RenderedDocument
Tags
Return values
RenderedDocumenttemplate()
Template of this call; the same selection rules as for invoices.
public
template(string $template) : self
Parameters
- $template : string