| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | 6 | public function setData(array $data): parent |
|
| 34 | { |
||
| 35 | // pass to header |
||
| 36 | 6 | if (!empty($data)) { |
|
| 37 | 6 | $header = new AddressBook\Header($this->dependenciesFactory); |
|
| 38 | 6 | $header |
|
| 39 | 6 | ->setDirectionalVariable($this->useOneDirectionalVariables) |
|
| 40 | 6 | ->setResolveOptions($this->resolveOptions) |
|
| 41 | 6 | ->setData($data); |
|
| 42 | 6 | $data = ['header' => $header]; |
|
| 43 | } |
||
| 44 | |||
| 45 | 6 | return parent::setData($data); |
|
|
|
|||
| 46 | } |
||
| 70 |