| 1 | <?php |
||
| 11 | abstract class AbstractJsonApiView |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * Status code |
||
| 15 | * |
||
| 16 | * @var int |
||
| 17 | */ |
||
| 18 | protected $status = 200; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Response headers |
||
| 22 | * |
||
| 23 | * @var array |
||
| 24 | */ |
||
| 25 | protected $headers = []; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Get status code |
||
| 29 | * |
||
| 30 | * @return int |
||
| 31 | */ |
||
| 32 | public function getStatus(): int |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Get response headers |
||
| 39 | * |
||
| 40 | * @return array |
||
| 41 | */ |
||
| 42 | public function getHeaders(): array |
||
| 46 | } |