Conditions | 3 |
Paths | 4 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
13 | public function getResponseData(): array |
||
14 | { |
||
15 | $result = []; |
||
16 | |||
17 | if (!empty($this->data)) { |
||
18 | $result['data'] = $this->data; |
||
19 | } |
||
20 | |||
21 | if ($this->executionContext->hasErrors()) { |
||
22 | $result['errors'] = $this->executionContext->getErrorsArray(); |
||
23 | $result['exceptions'] = $this->executionContext->getErrors(); |
||
24 | } |
||
25 | |||
26 | return $result; |
||
27 | } |
||
29 |