for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace kalanis\Pohoda;
/**
* @property AddressBook\AddressBookDto $data
*/
class AddressBook extends AbstractAgenda
{
use Common\AddActionTypeTrait;
use Common\AddParameterToHeaderTrait;
public function getImportRoot(): string
return 'lAdb:addressbook';
}
* {@inheritdoc}
public function setData(Common\Dtos\AbstractDto $data): parent
// pass to header
if (!empty($data->header)) {
$header = new AddressBook\Header($this->dependenciesFactory);
$header
->setDirectionalVariable($this->useOneDirectionalVariables)
->setResolveOptions($this->resolveOptions)
->setData($data->header);
$data->header = $header;
return parent::setData($data);
return parent::setData($data)
kalanis\Pohoda\AbstractAgenda
parent
public function getXML(): \SimpleXMLElement
$xml = $this->createXML()->addChild('adb:addressbook', '', $this->namespace('adb'));
$xml->addAttribute('version', '2.0');
$this->addElements($xml, $this->getDataElements(), 'adb');
return $xml;
* @{inheritDoc}
protected function getDefaultDto(): Common\Dtos\AbstractDto
return new AddressBook\AddressBookDto();