DigitickSepaTransferFileFacadeBaseCustomerTransferFileFacade

The WooCommerce Germanized Digitick Sepa TransferFile Facade BaseCustomerTransferFileFacade class.

Defined (1)

The class is defined in the following location(s).

/includes/gateways/direct-debit/libraries/php-sepa-xml/TransferFile/Facade/BaseCustomerTransferFileFacade.php  
  1. abstract class BaseCustomerTransferFileFacade implements CustomerTransferFileFacadeInterface 
  2. /** 
  3. * @var TransferFileInterface 
  4. */ 
  5. protected $transferFile; 
  6.  
  7. /** 
  8. * @var \Digitick\Sepa\DomBuilder\BaseDomBuilder 
  9. */ 
  10. protected $domBuilder; 
  11.  
  12. /** 
  13. * @var array 
  14. */ 
  15. protected $payments = array(); 
  16.  
  17. /** 
  18. * @param TransferFileInterface $transferFile 
  19. * @param BaseDomBuilder $domBuilder 
  20. */ 
  21. public function __construct(TransferFileInterface $transferFile, BaseDomBuilder $domBuilder) 
  22. $this->transferFile = $transferFile; 
  23. $this->domBuilder = $domBuilder; 
  24.  
  25. /** 
  26. * @return string 
  27. */ 
  28. public function asXML() 
  29. foreach ($this->payments as $payment) { 
  30. $this->transferFile->addPaymentInformation($payment); 
  31. $this->transferFile->accept($this->domBuilder); 
  32.  
  33. return $this->domBuilder->asXml();