Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 6 |
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 | ; |
||
26 | return $qb->getQuery()->getArrayResult(); |
||
27 | } |
||
29 |