<?php
namespace App\Entity;
use App\Repository\CircuitpriceRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=CircuitpriceRepository::class)
*/
class Circuitprice
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $pricebb;
/**
* @ORM\Column(type="date", nullable=true)
*/
private $dated;
/**
* @ORM\Column(type="date", nullable=true)
*/
private $datef;
/**
* @ORM\OneToMany(targetEntity=Circuitpriceroom::class, mappedBy="circuitprice", orphanRemoval=true)
*/
private $circuitpricerooms;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $enf252;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $enf6112;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $enf25;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $enf611;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $demande252;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $demande6112;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $demande611;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $demande25;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $demandebb;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $pack;
/**
* @ORM\ManyToOne(targetEntity=Circuit::class, inversedBy="circuitprices")
* @ORM\JoinColumn(nullable=false)
*/
private $circuit;
public function __construct()
{
$this->circuitpricerooms = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getPricebb(): ?float
{
return $this->pricebb;
}
public function setPricebb(?float $pricebb): self
{
$this->pricebb = $pricebb;
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, Circuitpriceroom>
*/
public function getCircuitpricerooms(): Collection
{
return $this->circuitpricerooms;
}
public function addCircuitpriceroom(Circuitpriceroom $circuitpriceroom): self
{
if (!$this->circuitpricerooms->contains($circuitpriceroom)) {
$this->circuitpricerooms[] = $circuitpriceroom;
$circuitpriceroom->setCircuitprice($this);
}
return $this;
}
public function removeCircuitpriceroom(Circuitpriceroom $circuitpriceroom): self
{
if ($this->circuitpricerooms->removeElement($circuitpriceroom)) {
// set the owning side to null (unless already changed)
if ($circuitpriceroom->getCircuitprice() === $this) {
$circuitpriceroom->setCircuitprice(null);
}
}
return $this;
}
public function getEnf252(): ?float
{
return $this->enf252;
}
public function setEnf252(?float $enf252): self
{
$this->enf252 = $enf252;
return $this;
}
public function getEnf6112(): ?float
{
return $this->enf6112;
}
public function setEnf6112(?float $enf6112): self
{
$this->enf6112 = $enf6112;
return $this;
}
public function getEnf25(): ?float
{
return $this->enf25;
}
public function setEnf25(?float $enf25): self
{
$this->enf25 = $enf25;
return $this;
}
public function getEnf611(): ?float
{
return $this->enf611;
}
public function setEnf611(?float $enf611): self
{
$this->enf611 = $enf611;
return $this;
}
public function isDemande252(): ?bool
{
return $this->demande252;
}
public function setDemande252(?bool $demande252): self
{
$this->demande252 = $demande252;
return $this;
}
public function isDemande6112(): ?bool
{
return $this->demande6112;
}
public function setDemande6112(?bool $demande6112): self
{
$this->demande6112 = $demande6112;
return $this;
}
public function isDemande611(): ?bool
{
return $this->demande611;
}
public function setDemande611(?bool $demande611): self
{
$this->demande611 = $demande611;
return $this;
}
public function isDemande25(): ?bool
{
return $this->demande25;
}
public function setDemande25(?bool $demande25): self
{
$this->demande25 = $demande25;
return $this;
}
public function isDemandebb(): ?bool
{
return $this->demandebb;
}
public function setDemandebb(?bool $demandebb): self
{
$this->demandebb = $demandebb;
return $this;
}
public function getPack(): ?string
{
return $this->pack;
}
public function setPack(?string $pack): self
{
$this->pack = $pack;
return $this;
}
public function getCircuit(): ?Circuit
{
return $this->circuit;
}
public function setCircuit(?Circuit $circuit): self
{
$this->circuit = $circuit;
return $this;
}
}