<?php
namespace App\Entity;
use App\Repository\CircuitRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=CircuitRepository::class)
*/
class Circuit
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="date", nullable=true)
*/
private $dated;
/**
* @ORM\Column(type="date", nullable=true)
*/
private $datef;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $libelle;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $type;
/**
* @ORM\Column(type="date", nullable=true)
*/
private $dcr;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $ville;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $nbreEtoiles;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $prix;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $prixavance;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $marge;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $apartir;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $etat;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $pindex;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $nbrejour;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $description;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $ageminenf;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $ageminbb;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $agemaxenf;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $agemaxbb;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $maps;
/**
* @ORM\OneToMany(targetEntity=Imagescircuits::class, mappedBy="circuits", orphanRemoval=true, cascade={"persist"})
*/
private $imagescircuits;
/**
* @ORM\OneToMany(targetEntity=DateSuppCircuit::class, mappedBy="circuit", orphanRemoval=true, cascade={"persist"})
*/
private $dateSuppCircuits;
/**
* @ORM\OneToMany(targetEntity=Coordonnescircuit::class, mappedBy="circuit", orphanRemoval=true)
*/
private $coordonnescircuits;
/**
* @ORM\OneToMany(targetEntity=Reservationcircuit::class, mappedBy="circuit", orphanRemoval=true)
*/
private $reservationcircuits;
/**
* @ORM\OneToMany(targetEntity=Circuitprice::class, mappedBy="circuit", orphanRemoval=true)
*/
private $circuitprices;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $serviceinclus;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $servicenoninclus;
public function __construct()
{
$this->imagescircuits = new ArrayCollection();
$this->dateSuppCircuits = new ArrayCollection();
$this->coordonnescircuits = new ArrayCollection();
$this->reservationcircuits = new ArrayCollection();
$this->circuitprices = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
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;
}
public function getLibelle(): ?string
{
return $this->libelle;
}
public function setLibelle(?string $libelle): self
{
$this->libelle = $libelle;
return $this;
}
public function getType(): ?string
{
return $this->type;
}
public function setType(?string $type): self
{
$this->type = $type;
return $this;
}
public function getDcr(): ?\DateTimeInterface
{
return $this->dcr;
}
public function setDcr(?\DateTimeInterface $dcr): self
{
$this->dcr = $dcr;
return $this;
}
public function getVille(): ?string
{
return $this->ville;
}
public function setVille(?string $ville): self
{
$this->ville = $ville;
return $this;
}
public function getNbreEtoiles(): ?int
{
return $this->nbreEtoiles;
}
public function setNbreEtoiles(?int $nbreEtoiles): self
{
$this->nbreEtoiles = $nbreEtoiles;
return $this;
}
public function getPrix(): ?float
{
return $this->prix;
}
public function setPrix(?float $prix): self
{
$this->prix = $prix;
return $this;
}
public function getPrixavance(): ?float
{
return $this->prixavance;
}
public function setPrixavance(?float $prixavance): self
{
$this->prixavance = $prixavance;
return $this;
}
public function getMarge(): ?float
{
return $this->marge;
}
public function setMarge(?float $marge): self
{
$this->marge = $marge;
return $this;
}
public function getApartir(): ?float
{
return $this->apartir;
}
public function setApartir(?float $apartir): self
{
$this->apartir = $apartir;
return $this;
}
public function isEtat(): ?bool
{
return $this->etat;
}
public function setEtat(?bool $etat): self
{
$this->etat = $etat;
return $this;
}
public function isPindex(): ?bool
{
return $this->pindex;
}
public function setPindex(?bool $pindex): self
{
$this->pindex = $pindex;
return $this;
}
public function getNbrejour(): ?int
{
return $this->nbrejour;
}
public function setNbrejour(?int $nbrejour): self
{
$this->nbrejour = $nbrejour;
return $this;
}
public function getDescription(): ?string
{
return $this->description;
}
public function setDescription(?string $description): self
{
$this->description = $description;
return $this;
}
public function getAgeminenf(): ?int
{
return $this->ageminenf;
}
public function setAgeminenf(?int $ageminenf): self
{
$this->ageminenf = $ageminenf;
return $this;
}
public function getAgeminbb(): ?int
{
return $this->ageminbb;
}
public function setAgeminbb(?int $ageminbb): self
{
$this->ageminbb = $ageminbb;
return $this;
}
public function getAgemaxenf(): ?int
{
return $this->agemaxenf;
}
public function setAgemaxenf(?int $agemaxenf): self
{
$this->agemaxenf = $agemaxenf;
return $this;
}
public function getAgemaxbb(): ?int
{
return $this->agemaxbb;
}
public function setAgemaxbb(?int $agemaxbb): self
{
$this->agemaxbb = $agemaxbb;
return $this;
}
public function getMaps(): ?string
{
return $this->maps;
}
public function setMaps(?string $maps): self
{
$this->maps = $maps;
return $this;
}
/**
* @return Collection<int, Imagescircuits>
*/
public function getImagescircuits(): Collection
{
return $this->imagescircuits;
}
public function addImagescircuit(Imagescircuits $imagescircuit): self
{
if (!$this->imagescircuits->contains($imagescircuit)) {
$this->imagescircuits[] = $imagescircuit;
$imagescircuit->setCircuits($this);
}
return $this;
}
public function removeImagescircuit(Imagescircuits $imagescircuit): self
{
if ($this->imagescircuits->removeElement($imagescircuit)) {
// set the owning side to null (unless already changed)
if ($imagescircuit->getCircuits() === $this) {
$imagescircuit->setCircuits(null);
}
}
return $this;
}
public function __toString()
{
return (string)$this->libelle;
}
/**
* @return Collection<int, DateSuppCircuit>
*/
public function getDateSuppCircuits(): Collection
{
return $this->dateSuppCircuits;
}
public function addDateSuppCircuit(DateSuppCircuit $dateSuppCircuit): self
{
if (!$this->dateSuppCircuits->contains($dateSuppCircuit)) {
$this->dateSuppCircuits[] = $dateSuppCircuit;
$dateSuppCircuit->setCircuit($this);
}
return $this;
}
public function removeDateSuppCircuit(DateSuppCircuit $dateSuppCircuit): self
{
if ($this->dateSuppCircuits->removeElement($dateSuppCircuit)) {
// set the owning side to null (unless already changed)
if ($dateSuppCircuit->getCircuit() === $this) {
$dateSuppCircuit->setCircuit(null);
}
}
return $this;
}
/**
* @return Collection<int, Coordonnescircuit>
*/
public function getCoordonnescircuits(): Collection
{
return $this->coordonnescircuits;
}
public function addCoordonnescircuit(Coordonnescircuit $coordonnescircuit): self
{
if (!$this->coordonnescircuits->contains($coordonnescircuit)) {
$this->coordonnescircuits[] = $coordonnescircuit;
$coordonnescircuit->setCircuit($this);
}
return $this;
}
public function removeCoordonnescircuit(Coordonnescircuit $coordonnescircuit): self
{
if ($this->coordonnescircuits->removeElement($coordonnescircuit)) {
// set the owning side to null (unless already changed)
if ($coordonnescircuit->getCircuit() === $this) {
$coordonnescircuit->setCircuit(null);
}
}
return $this;
}
/**
* @return Collection<int, Reservationcircuit>
*/
public function getReservationcircuits(): Collection
{
return $this->reservationcircuits;
}
public function addReservationcircuit(Reservationcircuit $reservationcircuit): self
{
if (!$this->reservationcircuits->contains($reservationcircuit)) {
$this->reservationcircuits[] = $reservationcircuit;
$reservationcircuit->setCircuit($this);
}
return $this;
}
public function removeReservationcircuit(Reservationcircuit $reservationcircuit): self
{
if ($this->reservationcircuits->removeElement($reservationcircuit)) {
// set the owning side to null (unless already changed)
if ($reservationcircuit->getCircuit() === $this) {
$reservationcircuit->setCircuit(null);
}
}
return $this;
}
/**
* @return Collection<int, Circuitprice>
*/
public function getCircuitprices(): Collection
{
return $this->circuitprices;
}
public function addCircuitprice(Circuitprice $circuitprice): self
{
if (!$this->circuitprices->contains($circuitprice)) {
$this->circuitprices[] = $circuitprice;
$circuitprice->setCircuit($this);
}
return $this;
}
public function removeCircuitprice(Circuitprice $circuitprice): self
{
if ($this->circuitprices->removeElement($circuitprice)) {
// set the owning side to null (unless already changed)
if ($circuitprice->getCircuit() === $this) {
$circuitprice->setCircuit(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;
}
}