src/Entity/PasswordRecovery.php line 13

  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * PasswordRecovery
  6.  *
  7.  * @ORM\Table(name="password_recovery", indexes={@ORM\Index(name="id_user", columns={"id_user"})})
  8.  * @ORM\Entity(repositoryClass="App\Repository\PasswordRecoveryRepository")
  9.  */
  10. class PasswordRecovery
  11. {
  12.     /**
  13.      * @var int
  14.      *
  15.      * @ORM\Column(name="id_recovery", type="integer", nullable=false)
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="IDENTITY")
  18.      */
  19.     private $idRecovery;
  20.     /**
  21.      * @var string
  22.      *
  23.      * @ORM\Column(name="entreprise_recovery", type="string", length=255, nullable=false)
  24.      */
  25.     private $entrepriseRecovery;
  26.     /**
  27.      * @var int
  28.      *
  29.      * @ORM\Column(name="date_debut", type="integer", nullable=false)
  30.      */
  31.     private $dateDebut;
  32.     /**
  33.      * @var int
  34.      *
  35.      * @ORM\Column(name="date_fin", type="integer", nullable=false)
  36.      */
  37.     private $dateFin;
  38.     /**
  39.      * @var \User
  40.      *
  41.      * @ORM\ManyToOne(targetEntity="User")
  42.      * @ORM\JoinColumns({
  43.      *   @ORM\JoinColumn(name="id_user", referencedColumnName="id")
  44.      * })
  45.      */
  46.     private $idUser;
  47.     public function getIdRecovery(): ?int
  48.     {
  49.         return $this->idRecovery;
  50.     }
  51.     public function getEntrepriseRecovery(): ?string
  52.     {
  53.         return $this->entrepriseRecovery;
  54.     }
  55.     public function setEntrepriseRecovery(string $entrepriseRecovery): self
  56.     {
  57.         $this->entrepriseRecovery $entrepriseRecovery;
  58.         return $this;
  59.     }
  60.     public function getDateDebut(): ?int
  61.     {
  62.         return $this->dateDebut;
  63.     }
  64.     public function setDateDebut(int $dateDebut): self
  65.     {
  66.         $this->dateDebut $dateDebut;
  67.         return $this;
  68.     }
  69.     public function getDateFin(): ?int
  70.     {
  71.         return $this->dateFin;
  72.     }
  73.     public function setDateFin(int $dateFin): self
  74.     {
  75.         $this->dateFin $dateFin;
  76.         return $this;
  77.     }
  78.     public function getIdUser(): ?User
  79.     {
  80.         return $this->idUser;
  81.     }
  82.     public function setIdUser(?User $idUser): self
  83.     {
  84.         $this->idUser $idUser;
  85.         return $this;
  86.     }
  87. }