| Total Complexity | 4 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class Record extends AbstractAgenda |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * {@inheritdoc} |
||
| 17 | */ |
||
| 18 | 3 | public function setData(Common\Dtos\AbstractDto $data): parent |
|
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * {@inheritdoc} |
||
| 35 | */ |
||
| 36 | 2 | public function getXML(): \SimpleXMLElement |
|
| 37 | { |
||
| 38 | 2 | $xml = $this->createXML()->addChild('prn:record', '', $this->namespace('prn')); |
|
| 39 | 2 | $xml->addAttribute('agenda', strval($this->data->agenda)); |
|
| 40 | |||
| 41 | 2 | $this->addElements($xml, $this->getDataElements(), 'prn'); |
|
| 42 | |||
| 43 | 2 | return $xml; |
|
| 44 | } |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @{inheritDoc} |
||
| 48 | */ |
||
| 49 | 3 | protected function getDefaultDto(): Common\Dtos\AbstractDto |
|
| 52 | } |
||
| 53 | } |
||
| 54 |