QueryInvoiceDigestRequestXml.php 681 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace NavOnlineInvoice;
  3. use Exception;
  4. class QueryInvoiceDigestRequestXml extends BaseRequestXml {
  5. protected $rootName = "QueryInvoiceDigestRequest";
  6. /**
  7. * QueryInvoiceDigestRequestXml constructor.
  8. * @param $config
  9. * @param $invoiceQueryParams
  10. * @param $page
  11. * @param $direction
  12. * @throws \Exception
  13. */
  14. function __construct($config, $invoiceQueryParams, $page, $direction) {
  15. parent::__construct($config);
  16. $this->xml->addChild("page", $page);
  17. $this->xml->addChild("invoiceDirection", $direction);
  18. XmlUtil::addChildArray($this->xml, "invoiceQueryParams", $invoiceQueryParams);
  19. }
  20. }