Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 1 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | 9 | public function __construct($page, $perPage, $count, Twig_Environment $twig) |
|
25 | { |
||
26 | 9 | $this->currentPage = $page; |
|
27 | 9 | $this->perPage = $perPage; |
|
28 | 9 | $this->count = $count; |
|
29 | 9 | $this->twig = $twig; |
|
30 | |||
31 | 9 | $this->criteria = Criteria::create() |
|
32 | 9 | ->setFirstResult(($page - 1) * $perPage) |
|
33 | 9 | ->setMaxResults($count); |
|
34 | 9 | } |
|
35 | |||
72 |