<?php
namespace App\Entity\Main;
use App\Repository\ActivityRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=ActivityRepository::class)
*/
class Activity
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=64, nullable=true)
*/
private $code;
/**
* @ORM\Column(type="string", length=60, nullable=true)
*/
private $designation;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $mention;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $mention_anniversaire;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $url_activity;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $temps_limite_resa;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $jauge_mini;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $jauge_maxi;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $temps_activite;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $presence_avant;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $espaces_jeu;
/**
* @ORM\Column(type="boolean")
*/
private $is_creneau_activity = false;
/**
* @ORM\Column(type="boolean")
*/
private $is_tarification_multiple = false;
/**
* @ORM\Column(type="time", nullable=true)
*/
private $heure_ouverture_creneau;
/**
* @ORM\Column(type="time", nullable=true)
*/
private $heure_fermeture_creneau;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $temps_creneau;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $creneau_obligatoire;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $block_room;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $isDraft = false;
/**
* @var Options[]
* @ORM\OneToMany(targetEntity=ActivityOptions::class, mappedBy="activity", cascade={"remove"})
*/
// private $options;
/**
* @ORM\OneToMany(targetEntity=OpeningDays::class, mappedBy="activity", orphanRemoval=true, cascade={"persist"})
*/
private $opening_days;
/**
* @ORM\Column(type="string", length=64, nullable=true)
*/
private $billboard_type;
/**
* @ORM\Column(type="string", length=64, nullable=true)
*/
private $billboard_libelle_slot = 'place';
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $espaces_jeu_reel;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $jauge_maxi_reel;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $temps_creneau_reel;
/**
* @ORM\Column(type="time", nullable=true)
*/
private $ignored_creneau;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $temps_activite_joueur;
public function __construct()
{
$this->opening_days = new ArrayCollection();
}
public function __toString()
{
return (string) $this->designation;
}
public function getId(): ?int
{
return $this->id;
}
public function getCode(): ?string
{
return $this->code;
}
public function setCode(?string $code): self
{
$this->code = $code;
return $this;
}
public function getDesignation(): ?string
{
return $this->designation;
}
public function setDesignation(?string $designation): self
{
$this->designation = $designation;
return $this;
}
public function getMention(): ?string
{
return $this->mention;
}
public function setMention(?string $mention): self
{
$this->mention = $mention;
return $this;
}
public function getMentionAnniversaire(): ?string
{
return $this->mention_anniversaire;
}
public function setMentionAnniversaire(?string $mention_anniversaire): self
{
$this->mention_anniversaire = $mention_anniversaire;
return $this;
}
public function getUrlActivity(): ?string
{
return $this->url_activity;
}
public function setUrlActivity(?string $url_activity): self
{
$this->url_activity = $url_activity;
return $this;
}
public function getTempsLimiteResa(): ?int
{
return $this->temps_limite_resa;
}
public function setTempsLimiteResa(?int $temps_limite_resa): self
{
$this->temps_limite_resa = $temps_limite_resa;
return $this;
}
public function getJaugeMini(): ?int
{
return $this->jauge_mini;
}
public function setJaugeMini(?int $jauge_mini): self
{
$this->jauge_mini = $jauge_mini;
return $this;
}
public function getJaugeMaxi(): ?int
{
return $this->jauge_maxi;
}
public function setJaugeMaxi(?int $jauge_maxi): self
{
$this->jauge_maxi = $jauge_maxi;
return $this;
}
public function getTempsActivite(): ?int
{
return $this->temps_activite;
}
public function setTempsActivite(?int $temps_activite): self
{
$this->temps_activite = $temps_activite;
return $this;
}
public function getPresenceAvant(): ?int
{
return $this->presence_avant;
}
public function setPresenceAvant(?int $presence_avant): self
{
$this->presence_avant = $presence_avant;
return $this;
}
public function getEspacesJeu(): ?int
{
return $this->espaces_jeu;
}
public function setEspacesJeu(?int $espaces_jeu): self
{
$this->espaces_jeu = $espaces_jeu;
return $this;
}
public function getIsCreneauActivity(): ?bool
{
return $this->is_creneau_activity;
}
public function setIsCreneauActivity(bool $is_creneau_activity): self
{
$this->is_creneau_activity = $is_creneau_activity;
return $this;
}
public function getIsTarificationMultiple(): ?bool
{
return $this->is_tarification_multiple;
}
public function setIsTarificationMultiple(bool $is_tarification_multiple): self
{
$this->is_tarification_multiple = $is_tarification_multiple;
return $this;
}
public function getHeureOuvertureCreneau(): ?\DateTimeInterface
{
return $this->heure_ouverture_creneau;
}
public function setHeureOuvertureCreneau(?\DateTimeInterface $heure_ouverture_creneau): self
{
$this->heure_ouverture_creneau = $heure_ouverture_creneau;
return $this;
}
public function getHeureFermetureCreneau(): ?\DateTimeInterface
{
return $this->heure_fermeture_creneau;
}
public function setHeureFermetureCreneau(?\DateTimeInterface $heure_fermeture_creneau): self
{
$this->heure_fermeture_creneau = $heure_fermeture_creneau;
return $this;
}
public function getTempsCreneau(): ?int
{
return $this->temps_creneau;
}
public function setTempsCreneau(?int $temps_creneau): self
{
$this->temps_creneau = $temps_creneau;
return $this;
}
public function getCreneauObligatoire(): ?bool
{
return $this->creneau_obligatoire;
}
public function setCreneauObligatoire(?bool $creneau_obligatoire): self
{
$this->creneau_obligatoire = $creneau_obligatoire;
return $this;
}
public function getBlockRoom(): ?bool
{
return $this->block_room;
}
public function setBlockRoom(?bool $block_room): self
{
$this->block_room = $block_room;
return $this;
}
public function getIsDraft(): ?bool
{
return $this->isDraft;
}
public function setIsDraft(?bool $isDraft): self
{
$this->isDraft = $isDraft;
return $this;
}
// public function getOptions()
// {
// return $this->options;
// }
// public function setOptions(\App\Entity\Main\ActivityOptions $options): self
// {
// $this->options = $options;
// return $this;
// }
/**
* @return Collection<int, OpeningDays>
*/
public function getOpeningDays(): Collection
{
return $this->opening_days;
}
public function addOpeningDay(OpeningDays $openingDay): self
{
if (!$this->opening_days->contains($openingDay)) {
$this->opening_days[] = $openingDay;
$openingDay->setActivity($this);
}
return $this;
}
public function removeOpeningDay(OpeningDays $openingDay): self
{
if ($this->opening_days->removeElement($openingDay)) {
// set the owning side to null (unless already changed)
if ($openingDay->getActivity() === $this) {
$openingDay->setActivity(null);
}
}
return $this;
}
public function getBillboardType(): ?string
{
return $this->billboard_type;
}
public function setBillboardType(?string $billboard_type): self
{
$this->billboard_type = $billboard_type;
return $this;
}
public function getBillboardLibelleSlot(): ?string
{
return $this->billboard_libelle_slot;
}
public function setBillboardLibelleSlot(?string $billboard_libelle_slot): self
{
$this->billboard_libelle_slot = $billboard_libelle_slot;
return $this;
}
public function getEspacesJeuReel(): ?int
{
return $this->espaces_jeu_reel;
}
public function setEspacesJeuReel(?int $espaces_jeu_reel): self
{
$this->espaces_jeu_reel = $espaces_jeu_reel;
return $this;
}
public function getJaugeMaxiReel(): ?int
{
return $this->jauge_maxi_reel;
}
public function setJaugeMaxiReel(?int $jauge_maxi_reel): self
{
$this->jauge_maxi_reel = $jauge_maxi_reel;
return $this;
}
public function getTempsCreneauReel(): ?int
{
return $this->temps_creneau_reel;
}
public function setTempsCreneauReel(?int $temps_creneau_reel): self
{
$this->temps_creneau_reel = $temps_creneau_reel;
return $this;
}
public function getIgnoredCreneau(): ?\DateTimeInterface
{
return $this->ignored_creneau;
}
public function setIgnoredCreneau(?\DateTimeInterface $ignored_creneau): self
{
$this->ignored_creneau = $ignored_creneau;
return $this;
}
public function getTempsActiviteJoueur(): ?int
{
return $this->temps_activite_joueur;
}
public function setTempsActiviteJoueur(?int $temps_activite_joueur): self
{
$this->temps_activite_joueur = $temps_activite_joueur;
return $this;
}
}