DocumentComponent
extends AbstractComponent
in package
implements
DocumentComponentInterface
Componente "billing.document".
Este componente se encarga de la creación, manipulación y renderización de los documentos tributarios.
Table of Contents
Interfaces
- DocumentComponentInterface
- Interfaz para `DocumentComponent`.
Properties
- $batchProcessorWorker : BatchProcessorWorkerInterface
- $builderWorker : BuilderWorkerInterface
- $cafLoader : CafLoaderWorkerInterface
- $dispatcherWorker : DispatcherWorkerInterface
- $documentBagManagerWorker : DocumentBagManagerWorkerInterface
- $loaderWorker : LoaderWorkerInterface
- $normalizerWorker : NormalizerWorkerInterface
- $parserWorker : ParserWorkerInterface
- $rendererWorker : RendererWorkerInterface
- $sanitizerWorker : SanitizerWorkerInterface
- $validatorWorker : ValidatorWorkerInterface
Methods
- __construct() : mixed
- bill() : DocumentBagInterface
- Ejecuta el proceso de facturación sobre los datos.
- getBatchProcessorWorker() : BatchProcessorWorkerInterface
- Entrega el worker "billing.document.batch_processor".
- getBuilderWorker() : BuilderWorkerInterface
- Entrega el worker "billing.document.builder".
- getDispatcherWorker() : DispatcherWorkerInterface
- Entrega el worker "billing.document.dispatcher".
- getDocumentBagManagerWorker() : DocumentBagManagerWorkerInterface
- Entrega el worker "billing.document.document_bag_manager".
- getLoaderWorker() : LoaderWorkerInterface
- Entrega el worker "billing.document.loader".
- getNormalizerWorker() : NormalizerWorkerInterface
- Entrega el worker "billing.document.normalizer".
- getParserWorker() : ParserWorkerInterface
- Entrega el worker "billing.document.parser".
- getRendererWorker() : RendererWorkerInterface
- Entrega el worker "billing.document.renderer".
- getSanitizerWorker() : SanitizerWorkerInterface
- Entrega el worker "billing.document.sanitizer".
- getValidatorWorker() : ValidatorWorkerInterface
- Entrega el worker "billing.document.validator".
- getWorkers() : array<string|int, mixed>
- {@inheritdoc}
Properties
$batchProcessorWorker
private
BatchProcessorWorkerInterface
$batchProcessorWorker
$builderWorker
private
BuilderWorkerInterface
$builderWorker
$cafLoader
private
CafLoaderWorkerInterface
$cafLoader
$dispatcherWorker
private
DispatcherWorkerInterface
$dispatcherWorker
$documentBagManagerWorker
private
DocumentBagManagerWorkerInterface
$documentBagManagerWorker
$loaderWorker
private
LoaderWorkerInterface
$loaderWorker
$normalizerWorker
private
NormalizerWorkerInterface
$normalizerWorker
$parserWorker
private
ParserWorkerInterface
$parserWorker
$rendererWorker
private
RendererWorkerInterface
$rendererWorker
$sanitizerWorker
private
SanitizerWorkerInterface
$sanitizerWorker
$validatorWorker
private
ValidatorWorkerInterface
$validatorWorker
Methods
__construct()
public
__construct(BatchProcessorWorkerInterface $batchProcessorWorker, BuilderWorkerInterface $builderWorker, DispatcherWorkerInterface $dispatcherWorker, DocumentBagManagerWorkerInterface $documentBagManagerWorker, LoaderWorkerInterface $loaderWorker, NormalizerWorkerInterface $normalizerWorker, ParserWorkerInterface $parserWorker, RendererWorkerInterface $rendererWorker, SanitizerWorkerInterface $sanitizerWorker, ValidatorWorkerInterface $validatorWorker, CafLoaderWorkerInterface $cafLoader) : mixed
Parameters
- $batchProcessorWorker : BatchProcessorWorkerInterface
- $builderWorker : BuilderWorkerInterface
- $dispatcherWorker : DispatcherWorkerInterface
- $documentBagManagerWorker : DocumentBagManagerWorkerInterface
- $loaderWorker : LoaderWorkerInterface
- $normalizerWorker : NormalizerWorkerInterface
- $parserWorker : ParserWorkerInterface
- $rendererWorker : RendererWorkerInterface
- $sanitizerWorker : SanitizerWorkerInterface
- $validatorWorker : ValidatorWorkerInterface
- $cafLoader : CafLoaderWorkerInterface
bill()
Ejecuta el proceso de facturación sobre los datos.
public
bill(string|array<string|int, mixed>|stdClass $data[, string|CafInterface $caf = null ][, string|array<string|int, mixed>|CertificateInterface $certificate = null ][, array<string|int, mixed>|DataContainerInterface $options = null ]) : DocumentBagInterface
Parameters
- $data : string|array<string|int, mixed>|stdClass
- $caf : string|CafInterface = null
- $certificate : string|array<string|int, mixed>|CertificateInterface = null
- $options : array<string|int, mixed>|DataContainerInterface = null
Return values
DocumentBagInterfacegetBatchProcessorWorker()
Entrega el worker "billing.document.batch_processor".
public
getBatchProcessorWorker() : BatchProcessorWorkerInterface
Return values
BatchProcessorWorkerInterfacegetBuilderWorker()
Entrega el worker "billing.document.builder".
public
getBuilderWorker() : BuilderWorkerInterface
Return values
BuilderWorkerInterfacegetDispatcherWorker()
Entrega el worker "billing.document.dispatcher".
public
getDispatcherWorker() : DispatcherWorkerInterface
Return values
DispatcherWorkerInterfacegetDocumentBagManagerWorker()
Entrega el worker "billing.document.document_bag_manager".
public
getDocumentBagManagerWorker() : DocumentBagManagerWorkerInterface
Return values
DocumentBagManagerWorkerInterfacegetLoaderWorker()
Entrega el worker "billing.document.loader".
public
getLoaderWorker() : LoaderWorkerInterface
Return values
LoaderWorkerInterfacegetNormalizerWorker()
Entrega el worker "billing.document.normalizer".
public
getNormalizerWorker() : NormalizerWorkerInterface
Return values
NormalizerWorkerInterfacegetParserWorker()
Entrega el worker "billing.document.parser".
public
getParserWorker() : ParserWorkerInterface
Return values
ParserWorkerInterfacegetRendererWorker()
Entrega el worker "billing.document.renderer".
public
getRendererWorker() : RendererWorkerInterface
Return values
RendererWorkerInterfacegetSanitizerWorker()
Entrega el worker "billing.document.sanitizer".
public
getSanitizerWorker() : SanitizerWorkerInterface
Return values
SanitizerWorkerInterfacegetValidatorWorker()
Entrega el worker "billing.document.validator".
public
getValidatorWorker() : ValidatorWorkerInterface
Return values
ValidatorWorkerInterfacegetWorkers()
{@inheritdoc}
public
getWorkers() : array<string|int, mixed>