| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | 6 | public function setData(Common\Dtos\AbstractDto $data): parent |
|
| 22 | { |
||
| 23 | // process identity |
||
| 24 | 6 | if (isset($data->identity)) { |
|
| 25 | 6 | $identity = new Address($this->dependenciesFactory); |
|
| 26 | 6 | $identity |
|
| 27 | 6 | ->setDirectionalVariable($this->useOneDirectionalVariables) |
|
| 28 | 6 | ->setResolveOptions($this->resolveOptions) |
|
| 29 | 6 | ->setData($data->identity); |
|
| 30 | 6 | $data->identity = $identity; |
|
| 31 | } |
||
| 32 | |||
| 33 | 6 | return parent::setData($data); |
|
|
|
|||
| 34 | } |
||
| 56 |