| Total Complexity | 2 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | class WishlistRepository extends EntityRepository implements WishlistRepositoryInterface |
||
| 20 | { |
||
| 21 | public function findOneByShopUser(ShopUserInterface $shopUser): ?WishlistInterface |
||
| 22 | { |
||
| 23 | return $this->createQueryBuilder('o') |
||
|
|
|||
| 24 | ->where('o.shopUser = :shopUser') |
||
| 25 | ->setParameter('shopUser', $shopUser) |
||
| 26 | ->getQuery() |
||
| 27 | ->getOneOrNullResult() |
||
| 28 | ; |
||
| 29 | } |
||
| 30 | |||
| 31 | public function findByToken(string $token): ?WishlistInterface |
||
| 38 | ; |
||
| 39 | } |
||
| 41 |