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_ventaslibro_compraslibro_boletaslibro_guiasresumen_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> = []
build()
Construye la entidad libro a partir del bag normalizado.
public
build(BookBagInterface $bag) : BookInterface
Parameters
- $bag : BookBagInterface
-
Bag con detalles ya normalizados.
Return values
BookInterface —Entidad libro resultante con su XML.