| Total Complexity | 3 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | */ |
||
| 18 | 2 | public function getXML(): \SimpleXMLElement |
|
| 19 | { |
||
| 20 | 2 | $xml = $this->createXML()->addChild('lst:itemUserCode', '', $this->namespace('lst')); |
|
| 21 | 2 | $xml->addAttribute('code', strval($this->data->code)); |
|
| 22 | 2 | $xml->addAttribute('name', strval($this->data->name)); |
|
| 23 | |||
| 24 | 2 | if (isset($this->data->constant)) { |
|
| 25 | 1 | $xml->addAttribute('constant', strval($this->data->constant)); |
|
| 26 | } |
||
| 27 | |||
| 28 | 2 | return $xml; |
|
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * {@inheritdoc} |
||
| 33 | */ |
||
| 34 | 2 | protected function getDefaultDto(): Common\Dtos\AbstractDto |
|
| 37 | } |
||
| 38 | } |
||
| 39 |