FacturaCompraBuilderStrategy
        
        extends AbstractBuilderStrategy
    
    
            
            in package
            
        
    
            
            implements
                            FacturaCompraBuilderStrategyInterface                    
    
    
Constructor ("builder") del documento factura de compra.
Attributes
- #[Strategy]
- $name: 'factura_compra'
- $worker: 'builder'
- $component: 'document'
- $package: 'billing'
Table of Contents
Interfaces
- FacturaCompraBuilderStrategyInterface
- Interfaz del constructor ("builder") del documento factura de compra.
Properties
- $documentClass : string
- Clase del documento que este "builder" construirá.
Methods
- __construct() : mixed
- build() : DocumentInterface
- Construye el documento tributario con los datos pasados.
- create() : DocumentInterface
- Crea la instancia del DTE a partir del XmlDocument.
- sign() : void
- Firma un documento tributario.
- stamp() : void
- Timbra un documento tributario.
Properties
$documentClass
Clase del documento que este "builder" construirá.
        protected
            string
    $documentClass
     = \libredte\lib\Core\Package\Billing\Component\Document\Entity\Document\FacturaCompra::class
    
    
    
    
    
Methods
__construct()
    public
                    __construct(NormalizerWorkerInterface $normalizerWorker, SanitizerWorkerInterface $sanitizerWorker, ValidatorWorkerInterface $validatorWorker, XmlServiceInterface $xmlService, SignatureServiceInterface $signatureService) : mixed
    Parameters
- $normalizerWorker : NormalizerWorkerInterface
- $sanitizerWorker : SanitizerWorkerInterface
- $validatorWorker : ValidatorWorkerInterface
- $xmlService : XmlServiceInterface
- $signatureService : SignatureServiceInterface
build()
Construye el documento tributario con los datos pasados.
    public
                    build(DocumentBagInterface $bag) : DocumentInterface
    Parameters
- $bag : DocumentBagInterface
- 
                    Contenedor con los datos del documento a construir. 
Return values
DocumentInterfacecreate()
Crea la instancia del DTE a partir del XmlDocument.
    public
                    create(XmlDocumentInterface $xmlDocument) : DocumentInterface
    Parameters
- $xmlDocument : XmlDocumentInterface
Return values
DocumentInterfacesign()
Firma un documento tributario.
    protected
                    sign(DocumentBagInterface $bag) : void
    Parameters
- $bag : DocumentBagInterface
stamp()
Timbra un documento tributario.
    protected
                    stamp(DocumentBagInterface $bag) : void
    Parameters
- $bag : DocumentBagInterface