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