LibreDTE

BuilderWorker extends AbstractWorker
in package
implements BuilderWorkerInterface uses StrategiesAwareTrait

Worker "billing.book.builder".

Construye el XML y la entidad resultante de cualquier tipo de libro tributario a partir del bag con detalles normalizados por el LoaderWorker.

Selecciona la estrategia usando BookBagInterface::getTipo() directamente:

  • libro_ventas
  • libro_compras
  • libro_boletas
  • libro_guias
  • resumen_ventas_diarias
Attributes
#[Worker]
$name: 'builder'
$component: 'book'
$package: 'billing'

Table of Contents

Interfaces

BuilderWorkerInterface
Interfaz para el worker `billing.book.builder`.

Properties

$signatureService  : SignatureServiceInterface

Methods

__construct()  : mixed
build()  : BookInterface
Construye la entidad libro a partir del bag normalizado.

Properties

$signatureService

private SignatureServiceInterface $signatureService

Methods

__construct()

public __construct(SignatureServiceInterface $signatureService[, iterable<string|int, mixed> $strategies = [] ]) : mixed
Parameters
$signatureService : SignatureServiceInterface
$strategies : iterable<string|int, mixed> = []

        
On this page

Search results