<?php
namespace App\Entity\Main;
use App\Repository\PriceRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=PriceRepository::class)
*/
class Price
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=128, nullable=true)
*/
private $designation;
/**
* @ORM\Column(type="string", length=128, nullable=true)
*/
private $information;
/**
* @ORM\Column(type="string", length=128, nullable=true)
*/
private $code;
/**
* @ORM\Column(type="time", nullable=true)
*/
private $heure_debut;
/**
* @ORM\Column(type="time", nullable=true)
*/
private $heure_fin;
/**
* @ORM\Column(type="array", nullable=true)
*/
private $jours = [];
/**
* @ORM\Column(type="float", nullable=true)
*/
private $price_ttc;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $taux_tva;
/**
* @ORM\Column(type="integer")
*/
private $priority = 1;
/**
* @ORM\Column(type="integer")
*/
private $multi_game = 1;
/**
* @ORM\ManyToOne(
* targetEntity="App\Entity\Main\Forfait",
* inversedBy="prices"
* )
* @ORM\JoinColumn(nullable=false, onDelete="CASCADE")
*/
private $forfait;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Main\GroupTarifs", inversedBy="prices")
*/
private $groupby;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $url;
public function getId(): ?int
{
return $this->id;
}
public function getDesignation(): ?string
{
return $this->designation;
}
public function setDesignation(?string $designation): self
{
$this->designation = $designation;
return $this;
}
public function getInformation(): ?string
{
return $this->information;
}
public function setInformation(?string $information): self
{
$this->information = $information;
return $this;
}
public function getCode(): ?string
{
return $this->code;
}
public function setCode(?string $code): self
{
$this->code = $code;
return $this;
}
public function getHeureDebut(): ?\DateTimeInterface
{
return $this->heure_debut;
}
public function setHeureDebut(?\DateTimeInterface $heure_debut): self
{
$this->heure_debut = $heure_debut;
return $this;
}
public function getHeureFin(): ?\DateTimeInterface
{
return $this->heure_fin;
}
public function setHeureFin(?\DateTimeInterface $heure_fin): self
{
$this->heure_fin = $heure_fin;
return $this;
}
public function getJours(): ?array
{
return $this->jours;
}
public function setJours(?array $jours): self
{
$this->jours = $jours;
return $this;
}
public function getPriceTtc(): ?float
{
return $this->price_ttc;
}
public function setPriceTtc(?float $price_ttc): self
{
$this->price_ttc = $price_ttc;
return $this;
}
public function getTauxTva(): ?float
{
return $this->taux_tva;
}
public function setTauxTva(?float $taux_tva): self
{
$this->taux_tva = $taux_tva;
return $this;
}
public function getPriority(): ?int
{
return $this->priority;
}
public function setPriority(?int $priority): self
{
$this->priority = $priority;
return $this;
}
public function getMultiGame(): ?int
{
return $this->multi_game;
}
public function setMultiGame(?int $multi_game): self
{
$this->multi_game = $multi_game;
return $this;
}
public function getForfait(): ?Forfait
{
return $this->forfait;
}
public function setForfait(?Forfait $forfait): self
{
$this->forfait = $forfait;
return $this;
}
public function getGroupby(): ?GroupTarifs
{
return $this->groupby;
}
public function setGroupby(?GroupTarifs $groupby): self
{
$this->groupby = $groupby;
return $this;
}
public function getUrl(): ?string
{
return $this->url;
}
public function setUrl(?string $url): self
{
$this->url = $url;
return $this;
}
}