| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | 6 | public function setData(Common\Dtos\AbstractDto $data): parent |
|
| 24 | { |
||
| 25 | // pass to header |
||
| 26 | 6 | if (!empty($data->header)) { |
|
| 27 | 6 | $header = new AddressBook\Header($this->dependenciesFactory); |
|
| 28 | 6 | $header |
|
| 29 | 6 | ->setDirectionalVariable($this->useOneDirectionalVariables) |
|
| 30 | 6 | ->setResolveOptions($this->resolveOptions) |
|
| 31 | 6 | ->setData($data->header); |
|
| 32 | 6 | $data->header = $header; |
|
| 33 | } |
||
| 34 | |||
| 35 | 6 | return parent::setData($data); |
|
|
|
|||
| 36 | } |
||
| 59 |