| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | { |
||
| 32 | // pass to header |
||
| 33 | 6 | if (!empty($data)) { |
|
| 34 | 6 | $header = new Header($this->namespacesPaths, $this->sanitizeEncoding, $this->companyRegistrationNumber, $this->resolveOptions); |
|
| 35 | 6 | $data = ['header' => $header->setDirectionalVariable($this->useOneDirectionalVariables)->setData($data)]; |
|
| 36 | } |
||
| 37 | |||
| 38 | 6 | return parent::setData($data); |
|
|
|
|||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * {@inheritdoc} |
||
| 43 | */ |
||
| 44 | 6 | public function getXML(): \SimpleXMLElement |
|
| 45 | { |
||
| 63 |