| 1 | <?php |
||
| 8 | class MultiformatResponse implements ResponseInterface |
||
| 9 | { |
||
| 10 | use ResponseTrait; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var |
||
| 14 | */ |
||
| 15 | private $data; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var int |
||
| 19 | */ |
||
| 20 | private $total; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var JsonDecoder |
||
| 24 | */ |
||
| 25 | private $jsonDecoder; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Response constructor. |
||
| 29 | * @param HttpResponse $response |
||
| 30 | */ |
||
| 31 | public function __construct(HttpResponse $response) |
||
| 37 | |||
| 38 | public function getData() |
||
| 46 | |||
| 47 | public function getTotal() |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @throws \Webmozart\Json\ValidationFailedException |
||
| 58 | */ |
||
| 59 | private function handleResponse() |
||
| 76 | } |
||
| 77 |