| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 42 | public function getList(?int $limit, ?int $offset) : array |
||
| 43 | { |
||
| 44 | $qb = $this->getEntityManager() |
||
| 45 | ->createQueryBuilder(); |
||
| 46 | |||
| 47 | $qb->select('entry') |
||
| 48 | ->from(Entry::class, 'entry') |
||
| 49 | ->orderBy('entry.createdAt', 'DESC'); |
||
| 50 | |||
| 51 | return $qb->getQuery() |
||
| 52 | ->setMaxResults($limit) |
||
| 53 | ->setFirstResult($offset) |
||
| 54 | ->getResult(); |
||
| 55 | } |
||
| 57 |