Conditions | 4 |
Paths | 8 |
Total Lines | 17 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 4.0218 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
56 | 1 | public function jsonSerialize(): array |
|
57 | { |
||
58 | 1 | $params = []; |
|
59 | |||
60 | 1 | if ($this->language) { |
|
61 | $params['language'] = $this->language; |
||
62 | } |
||
63 | |||
64 | 1 | if ($this->prefilledCustomer) { |
|
65 | 1 | $params['prefilled_customer'] = $this->prefilledCustomer->jsonSerialize(); |
|
66 | } |
||
67 | |||
68 | 1 | if ($this->returnUrls) { |
|
69 | 1 | $params = array_merge($params, $this->returnUrls->jsonSerialize()); |
|
70 | } |
||
71 | |||
72 | 1 | return array_merge($this->params, $params); |
|
73 | } |
||
75 |