<?php
namespace App\Entity;
use App\Repository\SejourRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=SejourRepository::class)
*/
class Sejour
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
*/
private $libelle;
/**
* @ORM\Column(type="date", nullable=true)
*/
private $dcr;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $etat;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $titre;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $dureesej;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $prix;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $pindex;
/**
* @ORM\ManyToOne(targetEntity=Themes::class, inversedBy="sejours")
*/
private $themes;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $villed;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $voyagecart;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $villea;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $hotel;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $nbreetoile;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $nbreplaces;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $description;
/**
* @ORM\ManyToOne(targetEntity=Arrangements::class, inversedBy="sejours")
*/
private $arrangement;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $prixavance;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $ageminenf;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $agemaxenf;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $ageminbb;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $agemaxbb;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $marge;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $maps;
/**
* @ORM\Column(type="date", nullable=true)
*/
private $dated;
/**
* @ORM\Column(type="date", nullable=true)
*/
private $datef;
/**
* @ORM\OneToMany(targetEntity=ImageSejours::class, mappedBy="sejours", orphanRemoval=true, cascade={"persist"})
*/
private $imageSejours;
/**
* @ORM\OneToMany(targetEntity=DateSuppSejours::class, mappedBy="sejours", orphanRemoval=true, cascade={"persist"})
*/
private $dateSuppSejours;
/**
* @ORM\OneToMany(targetEntity=Sejourprice::class, mappedBy="sejour", orphanRemoval=true)
*/
private $sejourprices;
/**
* @ORM\OneToMany(targetEntity=Sejourroom::class, mappedBy="sejour", orphanRemoval=true)
*/
private $sejourrooms;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $serviceinclus;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $servicenoninclus;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $latest;
public function __construct()
{
$this->imageSejours = new ArrayCollection();
$this->dateSuppSejours = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getLibelle(): ?string
{
return $this->libelle;
}
public function setLibelle(string $libelle): self
{
$this->libelle = $libelle;
return $this;
}
public function getDcr(): ?\DateTimeInterface
{
return $this->dcr;
}
public function setDcr(?\DateTimeInterface $dcr): self
{
$this->dcr = $dcr;
return $this;
}
public function isEtat(): ?bool
{
return $this->etat;
}
public function setEtat(?bool $etat): self
{
$this->etat = $etat;
return $this;
}
public function getTitre(): ?string
{
return $this->titre;
}
public function setTitre(?string $titre): self
{
$this->titre = $titre;
return $this;
}
public function getDureesej(): ?int
{
return $this->dureesej;
}
public function setDureesej(?int $dureesej): self
{
$this->dureesej = $dureesej;
return $this;
}
public function getPrix(): ?float
{
return $this->prix;
}
public function setPrix(?float $prix): self
{
$this->prix = $prix;
return $this;
}
public function isPindex(): ?bool
{
return $this->pindex;
}
public function setPindex(?bool $pindex): self
{
$this->pindex = $pindex;
return $this;
}
public function getThemes(): ?Themes
{
return $this->themes;
}
public function setThemes(?Themes $themes): self
{
$this->themes = $themes;
return $this;
}
public function getVilled(): ?string
{
return $this->villed;
}
public function setVilled(?string $villed): self
{
$this->villed = $villed;
return $this;
}
public function getVoyagecart(): ?string
{
return $this->voyagecart;
}
public function setVoyagecart(?string $voyagecart): self
{
$this->voyagecart = $voyagecart;
return $this;
}
public function getVillea(): ?string
{
return $this->villea;
}
public function setVillea(?string $villea): self
{
$this->villea = $villea;
return $this;
}
public function getHotel(): ?string
{
return $this->hotel;
}
public function setHotel(?string $hotel): self
{
$this->hotel = $hotel;
return $this;
}
public function getNbreetoile(): ?int
{
return $this->nbreetoile;
}
public function setNbreetoile(?int $nbreetoile): self
{
$this->nbreetoile = $nbreetoile;
return $this;
}
public function getNbreplaces(): ?int
{
return $this->nbreplaces;
}
public function setNbreplaces(?int $nbreplaces): self
{
$this->nbreplaces = $nbreplaces;
return $this;
}
public function getDescription(): ?string
{
return $this->description;
}
public function setDescription(?string $description): self
{
$this->description = $description;
return $this;
}
public function getArrangement(): ?Arrangements
{
return $this->arrangement;
}
public function setArrangement(?Arrangements $arrangement): self
{
$this->arrangement = $arrangement;
return $this;
}
public function getPrixavance(): ?float
{
return $this->prixavance;
}
public function setPrixavance(?float $prixavance): self
{
$this->prixavance = $prixavance;
return $this;
}
public function getAgeminenf(): ?string
{
return $this->ageminenf;
}
public function setAgeminenf(?string $ageminenf): self
{
$this->ageminenf = $ageminenf;
return $this;
}
public function getAgemaxenf(): ?string
{
return $this->agemaxenf;
}
public function setAgemaxenf(?string $agemaxenf): self
{
$this->agemaxenf = $agemaxenf;
return $this;
}
public function getAgeminbb(): ?string
{
return $this->ageminbb;
}
public function setAgeminbb(?string $ageminbb): self
{
$this->ageminbb = $ageminbb;
return $this;
}
public function getAgemaxbb(): ?string
{
return $this->agemaxbb;
}
public function setAgemaxbb(?string $agemaxbb): self
{
$this->agemaxbb = $agemaxbb;
return $this;
}
public function getMarge(): ?float
{
return $this->marge;
}
public function setMarge(?float $marge): self
{
$this->marge = $marge;
return $this;
}
public function getMaps(): ?string
{
return $this->maps;
}
public function setMaps(?string $maps): self
{
$this->maps = $maps;
return $this;
}
public function getDated(): ?\DateTimeInterface
{
return $this->dated;
}
public function setDated(?\DateTimeInterface $dated): self
{
$this->dated = $dated;
return $this;
}
public function getDatef(): ?\DateTimeInterface
{
return $this->datef;
}
public function setDatef(?\DateTimeInterface $datef): self
{
$this->datef = $datef;
return $this;
}
/**
* @return Collection<int, ImageSejours>
*/
public function getImageSejours(): Collection
{
return $this->imageSejours;
}
public function addImageSejour(ImageSejours $imageSejour): self
{
if (!$this->imageSejours->contains($imageSejour)) {
$this->imageSejours[] = $imageSejour;
$imageSejour->setSejours($this);
}
return $this;
}
public function removeImageSejour(ImageSejours $imageSejour): self
{
if ($this->imageSejours->removeElement($imageSejour)) {
// set the owning side to null (unless already changed)
if ($imageSejour->getSejours() === $this) {
$imageSejour->setSejours(null);
}
}
return $this;
}
/**
* @return Collection<int, DateSuppSejours>
*/
public function getDateSuppSejours(): Collection
{
return $this->dateSuppSejours;
}
public function addDateSuppSejour(DateSuppSejours $dateSuppSejour): self
{
if (!$this->dateSuppSejours->contains($dateSuppSejour)) {
$this->dateSuppSejours[] = $dateSuppSejour;
$dateSuppSejour->setSejours($this);
}
return $this;
}
public function removeDateSuppSejour(DateSuppSejours $dateSuppSejour): self
{
if ($this->dateSuppSejours->removeElement($dateSuppSejour)) {
// set the owning side to null (unless already changed)
if ($dateSuppSejour->getSejours() === $this) {
$dateSuppSejour->setSejours(null);
}
}
return $this;
}
public function __toString()
{
return (string)$this->titre;
}
/**
* @return Collection<int, Sejourprice>
*/
public function getSejourprices(): Collection
{
return $this->sejourprices;
}
public function addSejourprice(Sejourprice $sejourprice): self
{
if (!$this->sejourprices->contains($sejourprice)) {
$this->sejourprices[] = $sejourprice;
$sejourprice->setSejour($this);
}
return $this;
}
public function removeSejourprice(Sejourprice $sejourprice): self
{
if ($this->sejourprices->removeElement($sejourprice)) {
// set the owning side to null (unless already changed)
if ($sejourprice->getSejour() === $this) {
$sejourprice->setSejour(null);
}
}
return $this;
}
/**
* @return Collection<int, Sejourroom>
*/
public function getSejourrooms(): Collection
{
return $this->sejourrooms;
}
public function addSejourroom(Sejourroom $sejourroom): self
{
if (!$this->sejourrooms->contains($sejourroom)) {
$this->sejourrooms[] = $sejourroom;
$sejourroom->setSejour($this);
}
return $this;
}
public function removeSejourroom(Sejourroom $sejourroom): self
{
if ($this->sejourrooms->removeElement($sejourroom)) {
// set the owning side to null (unless already changed)
if ($sejourroom->getSejour() === $this) {
$sejourroom->setSejour(null);
}
}
return $this;
}
public function getServiceinclus(): ?string
{
return $this->serviceinclus;
}
public function setServiceinclus(?string $serviceinclus): self
{
$this->serviceinclus = $serviceinclus;
return $this;
}
public function getServicenoninclus(): ?string
{
return $this->servicenoninclus;
}
public function setServicenoninclus(?string $servicenoninclus): self
{
$this->servicenoninclus = $servicenoninclus;
return $this;
}
public function isLatest(): ?bool
{
return $this->latest;
}
public function setLatest(?bool $latest): self
{
$this->latest = $latest;
return $this;
}
}