for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?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\AbstractAgenda;
use Riesenia\Pohoda\Common;
class TaxDocument extends AbstractAgenda
{
/** @var string[] */
protected array $refElements = [];
protected array $elements = ['sourceLiquidation'];
* {@inheritdoc}
public function setData(array $data): parent
// process source liquidation
if (isset($data['sourceLiquidation'])) {
$sourceLiquidation = new SourceLiquidation($this->namespacesPaths, $this->sanitizeEncoding, $this->companyRegistrationNumber, $this->resolveOptions, $this->normalizerFactory);
$data['sourceLiquidation'] = $sourceLiquidation->setDirectionalVariable($this->useOneDirectionalVariables)->setData($data['sourceLiquidation']);
}
return parent::setData($data);
return parent::setData($data)
Riesenia\Pohoda\AbstractAgenda
parent
public function getXML(): \SimpleXMLElement
$xml = $this->createXML()->addChild('int:taxDocument', '', $this->namespace('int'));
$this->addElements($xml, $this->elements, 'int');
return $xml;
protected function configureOptions(Common\OptionsResolver $resolver): void
// available options
$resolver->setDefined($this->elements);