src/Entity/Main/OffreDuMoment.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Main;
  3. use App\Repository\Main\OffreDuMomentRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=OffreDuMomentRepository::class)
  7.  */
  8. class OffreDuMoment
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="string", length=255)
  18.      */
  19.     private $titre;
  20.     /**
  21.      * @ORM\Column(type="string", length=255)
  22.      */
  23.     private $image;
  24.     /**
  25.      * @ORM\Column(type="string", length=255, nullable=true)
  26.      */
  27.     private $lien;
  28.     /**
  29.      * @ORM\Column(type="string", length=255)
  30.      */
  31.     private $type;
  32.     /**
  33.      * @ORM\Column(type="datetime", nullable=true)
  34.      */
  35.     private $dateDebut;
  36.     /**
  37.      * @ORM\Column(type="datetime", nullable=true)
  38.      */
  39.     private $dateFin;
  40.     /**
  41.      * @ORM\ManyToOne(targetEntity=App\Entity\Main\Formule::class, fetch="EAGER")
  42.      */
  43.     private $formule;
  44.     /**
  45.      * @ORM\ManyToOne(targetEntity=App\Entity\Main\Forfait::class, fetch="EAGER")
  46.      */
  47.     private $forfait;
  48.     public function getId(): ?int
  49.     {
  50.         return $this->id;
  51.     }
  52.     public function getTitre(): ?string
  53.     {
  54.         return $this->titre;
  55.     }
  56.     public function setTitre(string $titre): self
  57.     {
  58.         $this->titre $titre;
  59.         return $this;
  60.     }
  61.     public function getImage(): ?string
  62.     {
  63.         return $this->image;
  64.     }
  65.     public function setImage(string $image): self
  66.     {
  67.         $this->image $image;
  68.         return $this;
  69.     }
  70.     public function getLien(): ?string
  71.     {
  72.         return $this->lien;
  73.     }
  74.     public function setLien(?string $lien): self
  75.     {
  76.         $this->lien $lien;
  77.         return $this;
  78.     }
  79.     public function getType(): ?string
  80.     {
  81.         return $this->type;
  82.     }
  83.     public function setType(string $type): self
  84.     {
  85.         $this->type $type;
  86.         return $this;
  87.     }
  88.     public function getDateDebut(): ?\DateTimeInterface
  89.     {
  90.         return $this->dateDebut;
  91.     }
  92.     public function setDateDebut(?\DateTimeInterface $dateDebut): self
  93.     {
  94.         $this->dateDebut $dateDebut;
  95.         return $this;
  96.     }
  97.     public function getDateFin(): ?\DateTimeInterface
  98.     {
  99.         return $this->dateFin;
  100.     }
  101.     public function setDateFin(?\DateTimeInterface $dateFin): self
  102.     {
  103.         $this->dateFin $dateFin;
  104.         return $this;
  105.     }
  106.     public function getFormule(): ?Formule
  107.     {
  108.         return $this->formule;
  109.     }
  110.     public function setFormule(?Formule $formule): self
  111.     {
  112.         $this->formule $formule;
  113.         return $this;
  114.     }
  115.     public function getForfait(): ?Forfait
  116.     {
  117.         return $this->forfait;
  118.     }
  119.     public function setForfait(?Forfait $forfait): self
  120.     {
  121.         $this->forfait $forfait;
  122.         return $this;
  123.     }
  124. }