-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Labels
Description
Is there way how to create request looks like https://www.stormware.cz/xml/samples/version_2/import/Banka/Bank_03_v2.0.xml using this library ?
Maybe i need something like src/Pohoda/Type/AutomaticLiquidationType.php ?
<?php
/**
* This file is part of riesenia/pohoda package.
*
* Licensed under the MIT License
* (c) RIESENIA.com
*/
declare(strict_types=1);
namespace Riesenia\Pohoda\Type;
use Riesenia\Pohoda\Agenda;
use Riesenia\Pohoda\Common\OptionsResolver;
use Riesenia\Pohoda\Common\SetNamespaceTrait;
class AutomaticLiquidationType extends Agenda
{
use SetNamespaceTrait;
/**
* {@inheritdoc}
*/
public function getXML(): \SimpleXMLElement
{
if ($this->_namespace === null) {
throw new \LogicException('Namespace not set.');
}
$xml = $this->_createXML()->addChild($this->_namespace . ':automaticLiquidationType', '', $this->_namespace($this->_namespace));
$this->_addElements($xml, $this->_data, $this->_namespace);
return $xml;
}
/**
* {@inheritdoc}
*/
protected function _configureOptions(OptionsResolver $resolver)
{
// available options
$resolver->setDefined(['type', 'filter', 'agenda']);
}
}Reactions are currently unavailable