| Total Complexity | 2 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class BrandImageRepository extends EntityRepository implements BrandImageRepositoryInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * {@inheritdoc} |
||
| 14 | */ |
||
| 15 | public function createPaginatorForBrand(BrandInterface $brand): iterable |
||
| 16 | { |
||
| 17 | $queryBuilder = $this->createQueryBuilder('o') |
||
| 18 | ->andWhere('o.owner = :brand') |
||
| 19 | ->setParameter('brand', $brand) |
||
| 20 | ; |
||
| 21 | |||
| 22 | return $this->getPaginator($queryBuilder); |
||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * {@inheritdoc} |
||
| 27 | */ |
||
| 28 | public function createPaginatorForBrandAndType(BrandInterface $brand, string $type): iterable |
||
| 40 | } |
||
| 41 | } |
||
| 42 |