LibreDTE

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

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
DocumentBagInterface

getWorkers()

{@inheritdoc}

public getWorkers() : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results