<?php
namespace App\Entity;
use App\Repository\FormuleRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=FormuleRepository::class)
*/
class Formule
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=Offer::class, inversedBy="formules")
*/
private $offer;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $title;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $durationLabel;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $departuresText;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $transportText;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $description;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $priceFrom;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $position;
public function getId(): ?int
{
return $this->id;
}
public function getOffer(): ?Offer
{
return $this->offer;
}
public function setOffer(?Offer $offer): self
{
$this->offer = $offer;
return $this;
}
public function getTitle(): ?string
{
return $this->title;
}
public function setTitle(?string $title): self
{
$this->title = $title;
return $this;
}
public function getDurationLabel(): ?string
{
return $this->durationLabel;
}
public function setDurationLabel(?string $durationLabel): self
{
$this->durationLabel = $durationLabel;
return $this;
}
public function getDeparturesText(): ?string
{
return $this->departuresText;
}
public function setDeparturesText(?string $departuresText): self
{
$this->departuresText = $departuresText;
return $this;
}
public function getTransportText(): ?string
{
return $this->transportText;
}
public function setTransportText(?string $transportText): self
{
$this->transportText = $transportText;
return $this;
}
public function getDescription(): ?string
{
return $this->description;
}
public function setDescription(?string $description): self
{
$this->description = $description;
return $this;
}
public function getPosition(): ?string
{
return $this->position;
}
public function setPosition(?string $position): self
{
$this->position = $position;
return $this;
}
/**
* Get the value of priceFrom
*/
public function getPriceFrom()
{
return $this->priceFrom;
}
/**
* Set the value of priceFrom
*
* @return self
*/
public function setPriceFrom($priceFrom)
{
$this->priceFrom = $priceFrom;
return $this;
}
}