| Total Complexity | 2 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types = 1); |
||
| 28 | abstract class AbstractCloudFlareResponse |
||
| 29 | { |
||
| 30 | protected $resultIsArray = true; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @param string $success |
||
| 34 | * @param string $errors |
||
| 35 | * |
||
| 36 | * @return string |
||
| 37 | */ |
||
| 38 | public function getFullJson(string $success = 'true', string $errors = '{}'): string |
||
| 55 | "result_info": { |
||
| 56 | "page": 1, |
||
| 57 | "per_page": 20, |
||
| 58 | "count": 1, |
||
| 59 | "total_count": 2000 |
||
| 60 | } |
||
| 61 | } |
||
| 62 | JSON; |
||
| 63 | |||
| 64 | } |
||
| 65 | |||
| 66 | /** |
||
| 67 | * @return string |
||
| 68 | */ |
||
| 69 | abstract public function getResultJson(): string; |
||
| 70 | } |
||
| 71 |