FacturaCompraNormalizerStrategy
extends AbstractNormalizerStrategy
in package
implements
FacturaCompraNormalizerStrategyInterface
Normalizador del documento factura de compra.
Table of Contents
Interfaces
- FacturaCompraNormalizerStrategyInterface
- Interfaz del normalizador del documento factura de compra.
Properties
- $normalizeDataPostDocumentNormalizationJob : NormalizeDataPostDocumentNormalizationJob
- $normalizeDataPreDocumentNormalizationJob : NormalizeDataPreDocumentNormalizationJob
- $normalizeFacturaCompraJob : NormalizeFacturaCompraJob
Methods
- __construct() : mixed
- normalize() : array<string|int, mixed>
- Normaliza los datos de un documento tributario electrónico.
- normalizeDocument() : void
- Normalización personalizada de cada estrategia.
Properties
$normalizeDataPostDocumentNormalizationJob
protected
NormalizeDataPostDocumentNormalizationJob
$normalizeDataPostDocumentNormalizationJob
$normalizeDataPreDocumentNormalizationJob
protected
NormalizeDataPreDocumentNormalizationJob
$normalizeDataPreDocumentNormalizationJob
$normalizeFacturaCompraJob
private
NormalizeFacturaCompraJob
$normalizeFacturaCompraJob
Methods
__construct()
public
__construct(NormalizeDataPreDocumentNormalizationJob $normalizeDataPreDocumentNormalizationJob, NormalizeDataPostDocumentNormalizationJob $normalizeDataPostDocumentNormalizationJob, NormalizeFacturaCompraJob $normalizeFacturaCompraJob) : mixed
Parameters
- $normalizeDataPreDocumentNormalizationJob : NormalizeDataPreDocumentNormalizationJob
- $normalizeDataPostDocumentNormalizationJob : NormalizeDataPostDocumentNormalizationJob
- $normalizeFacturaCompraJob : NormalizeFacturaCompraJob
normalize()
Normaliza los datos de un documento tributario electrónico.
public
normalize(DocumentBagInterface $bag) : array<string|int, mixed>
Parameters
- $bag : DocumentBagInterface
-
Contenedor con los datos del documento a normalizar.
Return values
array<string|int, mixed>normalizeDocument()
Normalización personalizada de cada estrategia.
protected
normalizeDocument(DocumentBagInterface $bag) : void
Parameters
- $bag : DocumentBagInterface