Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
2 / 2 |
ResetPasswordRequestRepository | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
2 | |
100.00% |
2 / 2 |
__construct | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
createResetPasswordRequest | n/a |
0 / 0 |
1 | n/a |
0 / 0 |
1 | <?php |
2 | |
3 | namespace App\Repository; |
4 | |
5 | use App\Entity\ResetPasswordRequest; |
6 | use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; |
7 | use Doctrine\Persistence\ManagerRegistry; |
8 | use SymfonyCasts\Bundle\ResetPassword\Model\ResetPasswordRequestInterface; |
9 | use SymfonyCasts\Bundle\ResetPassword\Persistence\Repository\ResetPasswordRequestRepositoryTrait; |
10 | use SymfonyCasts\Bundle\ResetPassword\Persistence\ResetPasswordRequestRepositoryInterface; |
11 | |
12 | /** |
13 | * @method null|ResetPasswordRequest find($id, $lockMode = null, $lockVersion = null) |
14 | * @method null|ResetPasswordRequest findOneBy(array $criteria, array $orderBy = null) |
15 | * @method ResetPasswordRequest[] findAll() |
16 | * @method ResetPasswordRequest[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) |
17 | */ |
18 | class ResetPasswordRequestRepository extends ServiceEntityRepository implements ResetPasswordRequestRepositoryInterface |
19 | { |
20 | use ResetPasswordRequestRepositoryTrait; |
21 | |
22 | public function __construct(ManagerRegistry $registry) |
23 | { |
24 | parent::__construct($registry, ResetPasswordRequest::class); |
25 | } |
26 | |
27 | /** |
28 | * @codeCoverageIgnore |
29 | */ |
30 | public function createResetPasswordRequest(object $user, \DateTimeInterface $expiresAt, string $selector, string $hashedToken): ResetPasswordRequestInterface |
31 | { |
32 | return new ResetPasswordRequest($user, $expiresAt, $selector, $hashedToken); |
33 | } |
34 | } |