<?php
namespace App\Entity;
use App\Repository\AgendaRepository;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Uid\Uuid;
/**
* @ORM\Entity(repositoryClass=AgendaRepository::class)
*/
class Agenda
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $uuid;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $token;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $slug;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $statut = false;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $nom;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $description;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $adresse;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $location;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $cp;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $ville;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $pays;
/**
* @ORM\Column(type="date", nullable=true)
*/
private $start;
/**
* @ORM\Column(type="date", nullable=true)
*/
private $end;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $singleDay;
/**
* @ORM\Column(type="time", nullable=true)
*/
private $timeStart;
/**
* @ORM\Column(type="time", nullable=true)
*/
private $timeEnd;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $temps;
/**
* @ORM\Column(type="datetime_immutable", nullable=true)
*/
private ?\DateTimeImmutable $createdAt;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private ?\DateTime $updatedAt;
public $dateStart;
public $dateEnd;
public $day;
public $dateTest;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $genre;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $presentiel;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $distanciel;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $lien;
public function __construct()
{
$this->uuid = Uuid::v4();
}
public function getId(): ?int
{
return $this->id;
}
public function getUuid(): ?string
{
return $this->uuid;
}
public function setUuid(?string $uuid): self
{
$this->uuid = $uuid;
return $this;
}
public function getToken(): ?string
{
return $this->token;
}
public function setToken(?string $token): self
{
$this->token = $token;
return $this;
}
public function getSlug(): ?string
{
return $this->slug;
}
public function setSlug(?string $slug): self
{
$this->slug = $slug;
return $this;
}
public function getNom(): ?string
{
return $this->nom;
}
public function setNom(?string $nom): self
{
$this->nom = $nom;
return $this;
}
public function getDescription(): ?string
{
return $this->description;
}
public function setDescription(?string $description): self
{
$this->description = $description;
return $this;
}
public function getAdresse(): ?string
{
return $this->adresse;
}
public function setAdresse(?string $adresse): self
{
$this->adresse = $adresse;
return $this;
}
public function getLocation(): ?string
{
return $this->location;
}
public function setLocation(?string $location): self
{
$this->location = $location;
return $this;
}
public function getCp(): ?string
{
return $this->cp;
}
public function setCp(?string $cp): self
{
$this->cp = $cp;
return $this;
}
public function getVille(): ?string
{
return $this->ville;
}
public function setVille(?string $ville): self
{
$this->ville = $ville;
return $this;
}
public function getPays(): ?string
{
return $this->pays;
}
public function setPays(?string $pays): self
{
$this->pays = $pays;
return $this;
}
public function isStatut(): ?bool
{
return $this->statut;
}
public function setStatut(?bool $statut): self
{
$this->statut = $statut;
return $this;
}
public function getStart(): ?\DateTimeInterface
{
return $this->start;
}
public function setStart(?\DateTimeInterface $start): self
{
$this->start = $start;
return $this;
}
public function getEnd(): ?\DateTimeInterface
{
return $this->end;
}
public function setEnd(?\DateTimeInterface $end): self
{
$this->end = $end;
return $this;
}
public function isSingleDay(): ?bool
{
return $this->singleDay;
}
public function setSingleDay(?bool $singleDay): self
{
$this->singleDay = $singleDay;
return $this;
}
public function getTimeStart(): ?\DateTimeInterface
{
return $this->timeStart;
}
public function setTimeStart(?\DateTimeInterface $timeStart): self
{
$this->timeStart = $timeStart;
return $this;
}
public function getTimeEnd(): ?\DateTimeInterface
{
return $this->timeEnd;
}
public function setTimeEnd(?\DateTimeInterface $timeEnd): self
{
$this->timeEnd = $timeEnd;
return $this;
}
public function isTemps(): ?bool
{
return $this->temps;
}
public function setTemps(?bool $temps): self
{
$this->temps = $temps;
return $this;
}
/**
* getCreatedAt
*
* @return DateTimeImmutable
*/
public function getCreatedAt(): ?\DateTimeImmutable
{
return $this->createdAt;
}
/**
* setCreatedAt
*
* @param mixed $createdAt
* @return self
*/
public function setCreatedAt(?\DateTimeImmutable $createdAt): self
{
$this->createdAt = $createdAt;
return $this;
}
/**
* getUpdatedAt
*
* @return DateTimeInterface
*/
public function getUpdatedAt(): ?\DateTimeInterface
{
return $this->updatedAt;
}
/**
* setUpdatedAt
*
* @param mixed $updatedAt
* @return self
*/
public function setUpdatedAt(?\DateTimeInterface $updatedAt): self
{
$this->updatedAt = $updatedAt;
return $this;
}
public function getGenre(): ?string
{
return $this->genre;
}
public function setGenre(?string $genre): self
{
$this->genre = $genre;
return $this;
}
public function isPresentiel(): ?bool
{
return $this->presentiel;
}
public function setPresentiel(?bool $presentiel): self
{
$this->presentiel = $presentiel;
return $this;
}
public function isDistanciel(): ?bool
{
return $this->distanciel;
}
public function setDistanciel(?bool $distanciel): self
{
$this->distanciel = $distanciel;
return $this;
}
public function getLien(): ?string
{
return $this->lien;
}
public function setLien(?string $lien): self
{
$this->lien = $lien;
return $this;
}
}