Conditions | 3 |
Paths | 4 |
Total Lines | 17 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
32 | public function createPage( |
||
33 | ListableResourceInterface $listableResource, |
||
34 | array $item, |
||
35 | array $meta |
||
36 | ): PageInterface { |
||
37 | $totalCount = (int)$meta['total']; |
||
38 | $limit = isset($meta['page_input']) ? (int)$meta['page_input']['limit'] : null; |
||
39 | $offset = isset($meta['page_input']) ? (int)$meta['page_input']['offset']: null; |
||
40 | |||
41 | return new Page( |
||
42 | new PageFactory($this->httpClient), |
||
43 | $this->httpClient, |
||
44 | $listableResource, |
||
45 | $totalCount, |
||
46 | $limit, |
||
47 | $offset, |
||
48 | $item |
||
49 | ); |
||
52 |