src/Entity/Photonsumeriques.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity(repositoryClass="App\Repository\PhotonsumeriquesRepository")
  6.  */
  7. class Photonsumeriques
  8. {
  9.     /**
  10.      * @ORM\Id()
  11.      * @ORM\GeneratedValue()
  12.      * @ORM\Column(type="integer")
  13.      */
  14.     private $id;
  15.     /**
  16.      * @ORM\ManyToOne(targetEntity="App\Entity\Sejour", inversedBy="photonsumeriques")
  17.      */
  18.     private $idSejour;
  19.     /**
  20.      * @ORM\ManyToOne(targetEntity="App\Entity\User", inversedBy="photonsumeriques")
  21.      */
  22.     private $idUser;
  23.     /**
  24.      * @ORM\ManyToOne(targetEntity="App\Entity\SejourAttachment", inversedBy="photonsumeriques")
  25.      */
  26.     private $idSejourAttachement;
  27.     /**
  28.      * @ORM\Column(type="datetime", nullable=true)
  29.      */
  30.     private $dateCreation;
  31.     /**
  32.      * @ORM\ManyToOne(targetEntity="App\Entity\Produit", inversedBy="photonsumeriques")
  33.      */
  34.     private $idProduit;
  35.     public function getId(): ?int
  36.     {
  37.         return $this->id;
  38.     }
  39.     public function getIdSejour(): ?Sejour
  40.     {
  41.         return $this->idSejour;
  42.     }
  43.     public function setIdSejour(?Sejour $idSejour): self
  44.     {
  45.         $this->idSejour $idSejour;
  46.         return $this;
  47.     }
  48.     public function getIdUser(): ?User
  49.     {
  50.         return $this->idUser;
  51.     }
  52.     public function setIdUser(?User $idUser): self
  53.     {
  54.         $this->idUser $idUser;
  55.         return $this;
  56.     }
  57.     public function getIdSejourAttachement(): ?SejourAttachment
  58.     {
  59.         return $this->idSejourAttachement;
  60.     }
  61.     public function setIdSejourAttachement(?SejourAttachment $idSejourAttachement): self
  62.     {
  63.         $this->idSejourAttachement $idSejourAttachement;
  64.         return $this;
  65.     }
  66.     public function getDateCreation(): ?\DateTimeInterface
  67.     {
  68.         return $this->dateCreation;
  69.     }
  70.     public function setDateCreation(?\DateTimeInterface $dateCreation): self
  71.     {
  72.         $this->dateCreation $dateCreation;
  73.         return $this;
  74.     }
  75.     public function getIdProduit(): ?Produit
  76.     {
  77.         return $this->idProduit;
  78.     }
  79.     public function setIdProduit(?Produit $idProduit): self
  80.     {
  81.         $this->idProduit $idProduit;
  82.         return $this;
  83.     }
  84. }