RendererWorker
extends AbstractWorker
in package
implements
RendererWorkerInterface
uses
StrategiesAwareTrait
Clase para los renderizadores.
Attributes
- #[Worker]
- $name: 'renderer'
- $component: 'document'
- $package: 'billing'
Table of Contents
Interfaces
- RendererWorkerInterface
- Interfaz para los renderizadores.
Properties
- $optionsSchema : array<string, array<string|int, mixed>|bool>
- Esquema de las opciones.
- $documentBagManager : DocumentBagManagerWorkerInterface
Methods
- __construct() : mixed
- render() : string
- Realiza el renderizado del documento.
Properties
$optionsSchema
Esquema de las opciones.
protected
array<string, array<string|int, mixed>|bool>
$optionsSchema
= ['__allowUndefinedKeys' => true, 'strategy' => ['types' => 'string', 'default' => 'template.estandar']]
$documentBagManager
private
DocumentBagManagerWorkerInterface
$documentBagManager
Methods
__construct()
public
__construct(DocumentBagManagerWorkerInterface $documentBagManager[, iterable<string|int, mixed> $strategies = [] ]) : mixed
Parameters
- $documentBagManager : DocumentBagManagerWorkerInterface
- $strategies : iterable<string|int, mixed> = []
render()
Realiza el renderizado del documento.
public
render(DocumentBagInterface $bag) : string
Parameters
- $bag : DocumentBagInterface
-
Contenedor con los datos del documento a renderizar.
Attributes
- #[ApiResource]
- $parametersExample: ['bag' => ['xmlDocument' => '', 'options' => ['renderer' => ['format' => 'pdf']]]]
Return values
string —Datos binarios del renderizado.