| Total Complexity | 2 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | class Settings extends AbstractAgenda |
||
| 18 | { |
||
| 19 | /** @var string[] */ |
||
| 20 | protected array $refElements = ['currency']; |
||
| 21 | |||
| 22 | /** @var string[] */ |
||
| 23 | protected array $elements = ['unit', 'length', 'currency', 'parameterList']; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * {@inheritdoc} |
||
| 27 | */ |
||
| 28 | 2 | public function getXML(): \SimpleXMLElement |
|
| 29 | { |
||
| 30 | 2 | $xml = $this->createXML()->addChild('ipm:parameterSettings', '', $this->namespace('ipm')); |
|
| 31 | |||
| 32 | 2 | $this->addElements($xml, $this->elements, 'ipm'); |
|
| 33 | |||
| 34 | 2 | return $xml; |
|
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * {@inheritdoc} |
||
| 39 | */ |
||
| 40 | 1 | protected function configureOptions(OptionsResolver $resolver): void |
|
| 47 | } |
||
| 48 | } |
||
| 49 |