| Total Complexity | 3 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class Category extends AbstractAgenda |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * {@inheritdoc} |
||
| 14 | */ |
||
| 15 | 1 | public function getXML(): \SimpleXMLElement |
|
| 16 | { |
||
| 17 | 1 | $category = $this->data->idCategory ?? null; |
|
| 18 | 1 | return $this->createXML()->addChild( |
|
| 19 | 1 | 'stk:idCategory', |
|
| 20 | 1 | is_null($category) ? null : strval($category), |
|
| 21 | 1 | $this->namespace('stk'), |
|
| 22 | 1 | ); |
|
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * {@inheritdoc} |
||
| 27 | */ |
||
| 28 | 1 | protected function getDefaultDto(): Common\Dtos\AbstractDto |
|
| 31 | } |
||
| 32 | } |
||
| 33 |