| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | public function createPager(AdapterInterface $adapter, $page, $limit) |
||
| 29 | { |
||
| 30 | $count = $adapter->getCount(); |
||
| 31 | |||
| 32 | return new Pager( |
||
| 33 | $page, |
||
| 34 | $limit, |
||
| 35 | $count, |
||
| 36 | $this->core->getPageCount($count, $limit), |
||
| 37 | $adapter->getSlice($this->core->getOffset($page, $limit), $limit) |
||
| 38 | ); |
||
| 39 | } |
||
| 40 | |||
| 69 |