class NoteBuilder extends TwigBuilder implements BuilderInterface

Class NoteBuilder.

Constants

TIMEZONE

Zona horaria para fechas en XML.

Properties

protected Environment $twig from TwigBuilder

Methods

__construct(array $options = [])

TwigBuilder constructor.

string
render(string $template, object $doc)

Get Content XML from template.

string|null
build(DocumentInterface $document)

Create file for document.

Details

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

TwigBuilder constructor.

Parameters

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

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

Get Content XML from template.

Parameters

string $template
object $doc

Return Value

string

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

Create file for document.

Parameters

DocumentInterface $document

Return Value

string|null Content File