| Total Complexity | 4 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class Desc extends AbstractAgenda |
||
| 15 | { |
||
| 16 | use Common\AddParameterTrait; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * {@inheritdoc} |
||
| 20 | */ |
||
| 21 | 4 | public function setData(Common\Dtos\AbstractDto $data): parent |
|
| 22 | { |
||
| 23 | // process partner identity |
||
| 24 | 4 | if (isset($data->partnerIdentity)) { |
|
| 25 | 1 | $partnerIdentity = new Address($this->dependenciesFactory); |
|
| 26 | 1 | $partnerIdentity |
|
| 27 | 1 | ->setDirectionalVariable($this->useOneDirectionalVariables) |
|
| 28 | 1 | ->setResolveOptions($this->resolveOptions) |
|
| 29 | 1 | ->setData($data->partnerIdentity); |
|
| 30 | 1 | $data->partnerIdentity = $partnerIdentity; |
|
| 31 | } |
||
| 32 | |||
| 33 | 4 | return parent::setData($data); |
|
|
|
|||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * {@inheritdoc} |
||
| 38 | */ |
||
| 39 | 3 | public function getXML(): \SimpleXMLElement |
|
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * {@inheritdoc} |
||
| 50 | */ |
||
| 51 | 4 | protected function getDefaultDto(): Common\Dtos\AbstractDto |
|
| 56 |