1 | <?php |
||
18 | class ConfirmationTokenRepository extends ServiceEntityRepository |
||
19 | { |
||
20 | 10 | public function __construct(RegistryInterface $registry) |
|
24 | |||
25 | /** |
||
26 | * @param string $token |
||
27 | * |
||
28 | * @throws \Doctrine\ORM\NonUniqueResultException |
||
29 | * |
||
30 | * @return ConfirmationToken|null |
||
31 | */ |
||
32 | 5 | public function findByToken(string $token): ?ConfirmationToken |
|
42 | |||
43 | /** |
||
44 | * @param User $user |
||
45 | * @param string $type |
||
46 | * |
||
47 | * @throws \Doctrine\ORM\NonUniqueResultException |
||
48 | * |
||
49 | * @return ConfirmationToken|null |
||
50 | */ |
||
51 | 1 | public function findByUserAndType(User $user, string $type): ?ConfirmationToken |
|
62 | } |
||
63 |