| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types = 1); |
||
| 38 | public function getFullJson(string $success = 'true', string $errors = '{}'): string |
||
| 39 | { |
||
| 40 | $result = $this->getResultJson(); |
||
| 41 | if ($this->resultIsArray === true) { |
||
| 42 | $result = "[ $result ]"; |
||
| 43 | } |
||
| 44 | |||
| 45 | return <<<JSON |
||
| 46 | { |
||
| 47 | "success": $success, |
||
| 48 | "errors": [ |
||
| 49 | $errors |
||
| 50 | ], |
||
| 51 | "messages": [ |
||
| 52 | {} |
||
| 53 | ], |
||
| 54 | "result": $result, |
||
| 55 | "result_info": { |
||
| 71 |