1 | <?php |
||
14 | class ResponseData |
||
15 | { |
||
16 | /** @var Collection */ |
||
17 | private $data; |
||
18 | |||
19 | /** @var null|int */ |
||
20 | private $dataCount; |
||
21 | |||
22 | /** @var int */ |
||
23 | private $totalDataCount; |
||
24 | |||
25 | /** |
||
26 | * ResponseData constructor. |
||
27 | * @param Collection $data the items that are returned from the provider |
||
28 | * @param int $totalDataCount the count of the total items that the provider started with |
||
29 | * @param int $dataCount the count of the total items that have been sorted out in search |
||
30 | */ |
||
31 | public function __construct(Collection $data, $totalDataCount, $dataCount = null) |
||
37 | |||
38 | /** |
||
39 | * @return Collection |
||
40 | */ |
||
41 | public function data() |
||
45 | |||
46 | /** |
||
47 | * @return int |
||
48 | */ |
||
49 | public function totalDataCount() |
||
53 | |||
54 | /** |
||
55 | * @return int |
||
56 | */ |
||
57 | public function filteredDataCount() |
||
65 | } |