Deprecated: Constant E_STRICT is deprecated in /home/pastorz/old-espace-client/vendor/symfony/error-handler/ErrorHandler.php on line 58

Deprecated: Constant E_STRICT is deprecated in /home/pastorz/old-espace-client/vendor/symfony/error-handler/ErrorHandler.php on line 76
Symfony Profiler

src/Entity/ResetPasswordRequest.php line 12

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