1 | <?php |
||
17 | final class IndexResponse implements ApiResponse |
||
18 | { |
||
19 | /** |
||
20 | * @var string[] |
||
21 | */ |
||
22 | private $items; |
||
23 | |||
24 | /** |
||
25 | * @var int |
||
26 | */ |
||
27 | private $totalCount = 0; |
||
28 | |||
29 | 1 | private function __construct() |
|
32 | |||
33 | 1 | public static function create(array $data) |
|
41 | |||
42 | /** |
||
43 | * @return string[] |
||
44 | */ |
||
45 | 1 | public function getItems() |
|
49 | |||
50 | /** |
||
51 | * @return int |
||
52 | */ |
||
53 | 1 | public function getTotalCount() |
|
57 | } |
||
58 |