class InvoiceBuilder extends TwigBuilder implements BuilderInterface

Class InvoiceBuilder.

Properties

protected Environment $twig from TwigBuilder

Methods

__construct(array $options = [])

No description

string
render(string $template, object $doc)

Get Content XML from template.

string|null
build(DocumentInterface $document)

Create xml for document.

Details

at line 27
__construct(array $options = [])

Parameters

array $options [optional] Recommended: 'cache' => '/dir/cache'

in TwigBuilder at line 46
string render(string $template, object $doc)

Get Content XML from template.

Parameters

string $template
object $doc

Return Value

string

at line 43
string|null build(DocumentInterface $document)

Create xml for document.

Parameters

DocumentInterface $document

Return Value

string|null Content File

Exceptions

Exception