# Code Coverage for /home/users/tracer/www/spookie.lab.24unix.net/Spookie/src/Entity/ResetPasswordRequest.php

| Code Coverage
| Lines | Functions and Methods | Classes and Traits
Total | 0.00% covered (danger) | 0.00% | 0 / 4 | 0.00% covered (danger) | 0.00% | 0 / 3 | CRAP | 0.00% covered (danger) | 0.00% | 0 / 1
ResetPasswordRequest | 0.00% covered (danger) | 0.00% | 0 / 4 | 0.00% covered (danger) | 0.00% | 0 / 3 | 12 | 0.00% covered (danger) | 0.00% | 0 / 1
__construct | 0.00% covered (danger) | 0.00% | 0 / 2 | 0.00% covered (danger) | 0.00% | 0 / 1 | 2 |
getId | 0.00% covered (danger) | 0.00% | 0 / 1 | 0.00% covered (danger) | 0.00% | 0 / 1 | 2 |
getUser | 0.00% covered (danger) | 0.00% | 0 / 1 | 0.00% covered (danger) | 0.00% | 0 / 1 | 2 |

1 | <?php
2 |
3 | namespace App\Entity;
4 |
5 | use App\Repository\ResetPasswordRequestRepository;
6 | use Doctrine\ORM\Mapping as ORM;
7 | use SymfonyCasts\Bundle\ResetPassword\Model\ResetPasswordRequestInterface;
8 | use SymfonyCasts\Bundle\ResetPassword\Model\ResetPasswordRequestTrait;
9 |
10 | #[ORM\Entity(repositoryClass: ResetPasswordRequestRepository::class)]
11 | class ResetPasswordRequest implements ResetPasswordRequestInterface
12 | {
13 | use ResetPasswordRequestTrait;
14 |
15 | #[ORM\Id]
16 | #[ORM\GeneratedValue]
17 | #[ORM\Column]
18 | private ?int $id = null;
19 |
20 | #[ORM\ManyToOne]
21 | #[ORM\JoinColumn(nullable: false)]
22 | private ?User $user = null;
23 |
24 | public function __construct(User $user, \DateTimeInterface $expiresAt, string $selector, string $hashedToken)
25 | {
26 | $this->user = $user;
27 | $this->initialize(expiresAt: $expiresAt, selector: $selector, hashedToken: $hashedToken);
28 | }
29 |
30 | public function getId(): ?int
31 | {
32 | return $this->id;
33 | }
34 |
35 | public function getUser(): object
36 | {
37 | return $this->user;
38 | }
39 | }