Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
30 | 6 | public function setData(array $data): parent |
|
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 | } |
||
63 |