| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | public function create(Doctrine\ORM\EntityManagerInterface $em, $userId, $passwordRequestId): Doctrine\ORM\Query |
||
| 21 | { |
||
| 22 | return $em->createQueryBuilder() |
||
| 23 | ->select('pr') |
||
| 24 | ->from(SixtyEightPublishers\User\ForgotPassword\DoctrineEntity\IPasswordRequest::class, 'pr') |
||
| 25 | ->where('pr.user = :uid') |
||
| 26 | ->andWhere('pr.id = :rid') |
||
| 27 | ->andWhere('pr.status = :status') |
||
| 28 | ->setParameter('uid', $userId) |
||
| 29 | ->setParameter('rid', $passwordRequestId) |
||
| 30 | ->setParameter('status', SixtyEightPublishers\User\ForgotPassword\DoctrineEntity\IPasswordRequest::STATUS_CREATED) |
||
| 31 | ->setMaxResults(1) |
||
| 32 | ->getQuery(); |
||
| 33 | } |
||
| 34 | } |
||
| 35 |