| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | public function findByDynamicPage(AbstractDynamicPage $page): array |
||
| 18 | { |
||
| 19 | $qb = $this->createQueryBuilder('location'); |
||
| 20 | $qb |
||
| 21 | ->andWhere( |
||
| 22 | $qb->expr()->eq('location.dynamicPageClass', ':cls') |
||
| 23 | ) |
||
| 24 | ->setParameter('cls', \get_class($page)) |
||
| 25 | ->addOrderBy('location.sort', 'ASC') |
||
| 26 | ; |
||
| 27 | return $qb->getQuery()->getResult(); |
||
| 28 | } |
||
| 30 |