src/Entity/Likephoto.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * Likephoto
  6.  *
  7.  * @ORM\Table(name="likephoto", indexes={@ORM\Index(name="fk_likeprodiut_idx", columns={"id_produit"}), @ORM\Index(name="fk_userlike_idx", columns={"id_user"}), @ORM\Index(name="fk_likesejourAttach_idx", columns={"id_sejour_attchment"})})
  8.  * @ORM\Entity(repositoryClass="App\Repository\LikephotoRepository")
  9.  */
  10. class Likephoto
  11. {
  12.     /**
  13.      * @var \DateTime|null
  14.      *
  15.      * @ORM\Column(name="date", type="date", nullable=true)
  16.      */
  17.     private $date;
  18.      /**
  19.      * @var \SejourAttachment
  20.      *
  21.      * @ORM\ManyToOne(targetEntity="SejourAttachment")
  22.      * @ORM\JoinColumns({
  23.      *   @ORM\JoinColumn(name="id_sejour_attchment", referencedColumnName="id")
  24.      * })
  25.      */
  26.     private $idSejourAttchment;
  27.     /**
  28.      * @var string|null
  29.      *
  30.      * @ORM\Column(name="etat", type="string", length=45, nullable=true)
  31.      */
  32.     private $etat;
  33.      /**
  34.      * @ORM\Id()
  35.      * @ORM\GeneratedValue()
  36.      * @ORM\Column(type="integer")
  37.      */
  38.     private $id;
  39.     /**
  40.      * @var \Produit
  41.      *
  42.      * @ORM\ManyToOne(targetEntity="Produit")
  43.      * @ORM\JoinColumns({
  44.      *   @ORM\JoinColumn(name="id_produit", referencedColumnName="id")
  45.      * })
  46.      */
  47.     private $idProduit;
  48.     /**
  49.      * @var \User
  50.      *
  51.      * @ORM\ManyToOne(targetEntity="User")
  52.      * @ORM\JoinColumns({
  53.      *   @ORM\JoinColumn(name="id_user", referencedColumnName="id")
  54.      * })
  55.      */
  56.     private $idUser;
  57.     /**
  58.      * @var string|null
  59.      *
  60.      * @ORM\Column(name="id_sejour", type="integer", length=11, nullable=true)
  61.      */
  62.     private $idSejour;
  63.     public function getDate(): ?\DateTimeInterface
  64.     {
  65.         return $this->date;
  66.     }
  67.     public function setDate(?\DateTimeInterface $date): self
  68.     {
  69.         $this->date $date;
  70.         return $this;
  71.     }
  72.     public function getIdSejourAttchment(): ?SejourAttachment
  73.     {
  74.         return $this->idSejourAttchment;
  75.     }
  76.     public function setIdSejourAttchment(?SejourAttachment $idSejourAttchment): self
  77.     {
  78.         $this->idSejourAttchment $idSejourAttchment;
  79.         return $this;
  80.     }
  81.     public function getEtat(): ?string
  82.     {
  83.         return $this->etat;
  84.     }
  85.     public function setEtat(?string $etat): self
  86.     {
  87.         $this->etat $etat;
  88.         return $this;
  89.     }
  90.     public function getId(): ?int
  91.     {
  92.         return $this->id;
  93.     }
  94.     public function setId(?int $id): self
  95.     {
  96.         $this->id $id;
  97.         return $this;
  98.     }
  99.     public function getIdProduit(): ?Produit
  100.     {
  101.         return $this->idProduit;
  102.     }
  103.     public function setIdProduit(?Produit $idProduit): self
  104.     {
  105.         $this->idProduit $idProduit;
  106.         return $this;
  107.     }
  108.     public function getIdUser(): ?User
  109.     {
  110.         return $this->idUser;
  111.     }
  112.     public function setIdUser(?User $idUser): self
  113.     {
  114.         $this->idUser $idUser;
  115.         return $this;
  116.     }
  117.     /**
  118.      * Get the value of idSejour
  119.      *
  120.      * @return  string|null
  121.      */ 
  122.     public function getIdSejour()
  123.     {
  124.         return $this->idSejour;
  125.     }
  126.     /**
  127.      * Set the value of idSejour
  128.      *
  129.      * @param  string|null  $idSejour
  130.      *
  131.      * @return  self
  132.      */ 
  133.     public function setIdSejour($idSejour)
  134.     {
  135.         $this->idSejour $idSejour;
  136.         return $this;
  137.     }
  138. }