src/Entity/PromoSejour.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\PromoSejourRepository")
  6.  */
  7. class PromoSejour
  8. {
  9.     /**
  10.      * @ORM\Id()
  11.      * @ORM\GeneratedValue()
  12.      * @ORM\Column(type="integer")
  13.      */
  14.     private $id;
  15.     /**
  16.      * @ORM\ManyToOne(targetEntity="App\Entity\Promotions", inversedBy="promoSejours")
  17.      */
  18.     private $promotion;
  19.     /**
  20.      * @ORM\ManyToOne(targetEntity="App\Entity\Sejour", inversedBy="promoSejours")
  21.      * @ORM\JoinColumn(nullable=false)
  22.      */
  23.     private $sejour;
  24.     /**
  25.      * @ORM\Column(type="datetime", nullable=true)
  26.      */
  27.     private $dateCreation;
  28.     public function getId(): ?int
  29.     {
  30.         return $this->id;
  31.     }
  32.     public function getPromotion(): ?Promotions
  33.     {
  34.         return $this->promotion;
  35.     }
  36.     public function setPromotion(?Promotions $promotion): self
  37.     {
  38.         $this->promotion $promotion;
  39.         return $this;
  40.     }
  41.     public function getSejour(): ?Sejour
  42.     {
  43.         return $this->sejour;
  44.     }
  45.     public function setSejour(?Sejour $sejour): self
  46.     {
  47.         $this->sejour $sejour;
  48.         return $this;
  49.     }
  50.     public function getDateCreation(): ?\DateTimeInterface
  51.     {
  52.         return $this->dateCreation;
  53.     }
  54.     public function setDateCreation(?\DateTimeInterface $dateCreation): self
  55.     {
  56.         $this->dateCreation $dateCreation;
  57.         return $this;
  58.     }
  59. }