| Total Complexity | 7 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | class JsonApiResponse |
||
| 6 | { |
||
| 7 | protected $status; |
||
| 8 | |||
| 9 | protected $errors; |
||
| 10 | |||
| 11 | public function getStatus() |
||
| 12 | { |
||
| 13 | return $this->status; |
||
| 14 | } |
||
| 15 | |||
| 16 | public function status() |
||
| 17 | { |
||
| 18 | return $this->getStatus(); |
||
| 19 | } |
||
| 20 | |||
| 21 | public function getErrors() |
||
| 24 | } |
||
| 25 | |||
| 26 | public function errors() |
||
| 27 | { |
||
| 28 | return $this->getErrors(); |
||
| 29 | } |
||
| 30 | |||
| 31 | public function setStatus($status) |
||
| 32 | { |
||
| 33 | $this->status = $status; |
||
| 34 | } |
||
| 35 | |||
| 36 | public function setErrors($errors) |
||
| 37 | { |
||
| 38 | $this->errors = $errors; |
||
| 39 | } |
||
| 40 | |||
| 41 | public function toArray() |
||
| 44 | } |
||
| 45 | } |
||
| 46 |