Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
55 | public function __construct(array $source, \stdClass $pagination) |
||
56 | { |
||
57 | $this->source = $source; |
||
58 | $this->currentPage = (int) $pagination->current_page; |
||
59 | $this->totalPages = (int) $pagination->total_pages; |
||
60 | $this->perPage = (int) $pagination->per_page; |
||
61 | $this->totalCount = (int) $pagination->total; |
||
62 | $this->count = (int) $pagination->count; |
||
63 | } |
||
64 | |||
113 |