src/Entity/Formule.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\FormuleRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=FormuleRepository::class)
  7.  */
  8. class Formule
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\ManyToOne(targetEntity=Offer::class, inversedBy="formules")
  18.      */
  19.     private $offer;
  20.     /**
  21.      * @ORM\Column(type="string", length=255, nullable=true)
  22.      */
  23.     private $title;
  24.     /**
  25.      * @ORM\Column(type="string", length=255, nullable=true)
  26.      */
  27.     private $durationLabel;
  28.     /**
  29.      * @ORM\Column(type="string", length=255, nullable=true)
  30.      */
  31.     private $departuresText;
  32.     /**
  33.      * @ORM\Column(type="string", length=255, nullable=true)
  34.      */
  35.     private $transportText;
  36.     /**
  37.      * @ORM\Column(type="string", length=255, nullable=true)
  38.      */
  39.     private $description;
  40.     /**
  41.      * @ORM\Column(type="string", length=255, nullable=true)
  42.      */
  43.     private $priceFrom;
  44.     /**
  45.      * @ORM\Column(type="string", length=255, nullable=true)
  46.      */
  47.     private $position;
  48.     public function getId(): ?int
  49.     {
  50.         return $this->id;
  51.     }
  52.     public function getOffer(): ?Offer
  53.     {
  54.         return $this->offer;
  55.     }
  56.     public function setOffer(?Offer $offer): self
  57.     {
  58.         $this->offer $offer;
  59.         return $this;
  60.     }
  61.     public function getTitle(): ?string
  62.     {
  63.         return $this->title;
  64.     }
  65.     public function setTitle(?string $title): self
  66.     {
  67.         $this->title $title;
  68.         return $this;
  69.     }
  70.     public function getDurationLabel(): ?string
  71.     {
  72.         return $this->durationLabel;
  73.     }
  74.     public function setDurationLabel(?string $durationLabel): self
  75.     {
  76.         $this->durationLabel $durationLabel;
  77.         return $this;
  78.     }
  79.     public function getDeparturesText(): ?string
  80.     {
  81.         return $this->departuresText;
  82.     }
  83.     public function setDeparturesText(?string $departuresText): self
  84.     {
  85.         $this->departuresText $departuresText;
  86.         return $this;
  87.     }
  88.     public function getTransportText(): ?string
  89.     {
  90.         return $this->transportText;
  91.     }
  92.     public function setTransportText(?string $transportText): self
  93.     {
  94.         $this->transportText $transportText;
  95.         return $this;
  96.     }
  97.     public function getDescription(): ?string
  98.     {
  99.         return $this->description;
  100.     }
  101.     public function setDescription(?string $description): self
  102.     {
  103.         $this->description $description;
  104.         return $this;
  105.     }
  106.   
  107.     public function getPosition(): ?string
  108.     {
  109.         return $this->position;
  110.     }
  111.     public function setPosition(?string $position): self
  112.     {
  113.         $this->position $position;
  114.         return $this;
  115.     }
  116.     /**
  117.      * Get the value of priceFrom
  118.      */ 
  119.     public function getPriceFrom()
  120.     {
  121.         return $this->priceFrom;
  122.     }
  123.     /**
  124.      * Set the value of priceFrom
  125.      *
  126.      * @return  self
  127.      */ 
  128.     public function setPriceFrom($priceFrom)
  129.     {
  130.         $this->priceFrom $priceFrom;
  131.         return $this;
  132.     }
  133. }