src/Entity/Agenda.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\AgendaRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Uid\Uuid;
  6. /**
  7.  * @ORM\Entity(repositoryClass=AgendaRepository::class)
  8.  */
  9. class Agenda
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="string", length=255, nullable=true)
  19.      */
  20.     private $uuid;
  21.     /**
  22.      * @ORM\Column(type="string", length=255, nullable=true)
  23.      */
  24.     private $token;
  25.     /**
  26.      * @ORM\Column(type="string", length=255, nullable=true)
  27.      */
  28.     private $slug;
  29.     /**
  30.      * @ORM\Column(type="boolean", nullable=true)
  31.      */
  32.     private $statut false;
  33.     /**
  34.      * @ORM\Column(type="string", length=255, nullable=true)
  35.      */
  36.     private $nom;
  37.     /**
  38.      * @ORM\Column(type="text", nullable=true)
  39.      */
  40.     private $description;
  41.     /**
  42.      * @ORM\Column(type="string", length=255, nullable=true)
  43.      */
  44.     private $adresse;
  45.     /**
  46.      * @ORM\Column(type="string", length=255, nullable=true)
  47.      */
  48.     private $location;
  49.     /**
  50.      * @ORM\Column(type="string", length=255, nullable=true)
  51.      */
  52.     private $cp;
  53.     /**
  54.      * @ORM\Column(type="string", length=255, nullable=true)
  55.      */
  56.     private $ville;
  57.     /**
  58.      * @ORM\Column(type="string", length=255, nullable=true)
  59.      */
  60.     private $pays;
  61.     /**
  62.      * @ORM\Column(type="date", nullable=true)
  63.      */
  64.     private $start;
  65.     /**
  66.      * @ORM\Column(type="date", nullable=true)
  67.      */
  68.     private $end;
  69.     /**
  70.      * @ORM\Column(type="boolean", nullable=true)
  71.      */
  72.     private $singleDay;
  73.     /**
  74.      * @ORM\Column(type="time", nullable=true)
  75.      */
  76.     private $timeStart;
  77.     /**
  78.      * @ORM\Column(type="time", nullable=true)
  79.      */
  80.     private $timeEnd;
  81.     /**
  82.      * @ORM\Column(type="boolean", nullable=true)
  83.      */
  84.     private $temps;
  85.     /**
  86.      * @ORM\Column(type="datetime_immutable", nullable=true)
  87.      */
  88.     private ?\DateTimeImmutable $createdAt;
  89.     /**
  90.      * @ORM\Column(type="datetime", nullable=true)
  91.      */
  92.     private ?\DateTime $updatedAt;
  93.     public $dateStart;
  94.     public $dateEnd;
  95.     public $day;
  96.     public $dateTest;
  97.     /**
  98.      * @ORM\Column(type="string", length=255, nullable=true)
  99.      */
  100.     private $genre;
  101.     /**
  102.      * @ORM\Column(type="boolean", nullable=true)
  103.      */
  104.     private $presentiel;
  105.     /**
  106.      * @ORM\Column(type="boolean", nullable=true)
  107.      */
  108.     private $distanciel;
  109.     /**
  110.      * @ORM\Column(type="text", nullable=true)
  111.      */
  112.     private $lien;
  113.     public function __construct()
  114.     {
  115.         $this->uuid Uuid::v4();
  116.     }
  117.     public function getId(): ?int
  118.     {
  119.         return $this->id;
  120.     }
  121.     public function getUuid(): ?string
  122.     {
  123.         return $this->uuid;
  124.     }
  125.     public function setUuid(?string $uuid): self
  126.     {
  127.         $this->uuid $uuid;
  128.         return $this;
  129.     }
  130.     public function getToken(): ?string
  131.     {
  132.         return $this->token;
  133.     }
  134.     public function setToken(?string $token): self
  135.     {
  136.         $this->token $token;
  137.         return $this;
  138.     }
  139.     public function getSlug(): ?string
  140.     {
  141.         return $this->slug;
  142.     }
  143.     public function setSlug(?string $slug): self
  144.     {
  145.         $this->slug $slug;
  146.         return $this;
  147.     }
  148.     public function getNom(): ?string
  149.     {
  150.         return $this->nom;
  151.     }
  152.     public function setNom(?string $nom): self
  153.     {
  154.         $this->nom $nom;
  155.         return $this;
  156.     }
  157.     public function getDescription(): ?string
  158.     {
  159.         return $this->description;
  160.     }
  161.     public function setDescription(?string $description): self
  162.     {
  163.         $this->description $description;
  164.         return $this;
  165.     }
  166.     public function getAdresse(): ?string
  167.     {
  168.         return $this->adresse;
  169.     }
  170.     public function setAdresse(?string $adresse): self
  171.     {
  172.         $this->adresse $adresse;
  173.         return $this;
  174.     }
  175.     public function getLocation(): ?string
  176.     {
  177.         return $this->location;
  178.     }
  179.     public function setLocation(?string $location): self
  180.     {
  181.         $this->location $location;
  182.         return $this;
  183.     }
  184.     public function getCp(): ?string
  185.     {
  186.         return $this->cp;
  187.     }
  188.     public function setCp(?string $cp): self
  189.     {
  190.         $this->cp $cp;
  191.         return $this;
  192.     }
  193.     public function getVille(): ?string
  194.     {
  195.         return $this->ville;
  196.     }
  197.     public function setVille(?string $ville): self
  198.     {
  199.         $this->ville $ville;
  200.         return $this;
  201.     }
  202.     public function getPays(): ?string
  203.     {
  204.         return $this->pays;
  205.     }
  206.     public function setPays(?string $pays): self
  207.     {
  208.         $this->pays $pays;
  209.         return $this;
  210.     }
  211.     public function isStatut(): ?bool
  212.     {
  213.         return $this->statut;
  214.     }
  215.     public function setStatut(?bool $statut): self
  216.     {
  217.         $this->statut $statut;
  218.         return $this;
  219.     }
  220.     public function getStart(): ?\DateTimeInterface
  221.     {
  222.         return $this->start;
  223.     }
  224.     public function setStart(?\DateTimeInterface $start): self
  225.     {
  226.         $this->start $start;
  227.         return $this;
  228.     }
  229.     public function getEnd(): ?\DateTimeInterface
  230.     {
  231.         return $this->end;
  232.     }
  233.     public function setEnd(?\DateTimeInterface $end): self
  234.     {
  235.         $this->end $end;
  236.         return $this;
  237.     }
  238.     public function isSingleDay(): ?bool
  239.     {
  240.         return $this->singleDay;
  241.     }
  242.     public function setSingleDay(?bool $singleDay): self
  243.     {
  244.         $this->singleDay $singleDay;
  245.         return $this;
  246.     }
  247.     public function getTimeStart(): ?\DateTimeInterface
  248.     {
  249.         return $this->timeStart;
  250.     }
  251.     public function setTimeStart(?\DateTimeInterface $timeStart): self
  252.     {
  253.         $this->timeStart $timeStart;
  254.         return $this;
  255.     }
  256.     public function getTimeEnd(): ?\DateTimeInterface
  257.     {
  258.         return $this->timeEnd;
  259.     }
  260.     public function setTimeEnd(?\DateTimeInterface $timeEnd): self
  261.     {
  262.         $this->timeEnd $timeEnd;
  263.         return $this;
  264.     }
  265.     public function isTemps(): ?bool
  266.     {
  267.         return $this->temps;
  268.     }
  269.     public function setTemps(?bool $temps): self
  270.     {
  271.         $this->temps $temps;
  272.         return $this;
  273.     }
  274.     /**
  275.      * getCreatedAt
  276.      *
  277.      * @return DateTimeImmutable
  278.      */
  279.     public function getCreatedAt(): ?\DateTimeImmutable
  280.     {
  281.         return $this->createdAt;
  282.     }
  283.     
  284.     /**
  285.      * setCreatedAt
  286.      *
  287.      * @param  mixed $createdAt
  288.      * @return self
  289.      */
  290.     public function setCreatedAt(?\DateTimeImmutable $createdAt): self
  291.     {
  292.         $this->createdAt $createdAt;
  293.         return $this;
  294.     }
  295.     
  296.     /**
  297.      * getUpdatedAt
  298.      *
  299.      * @return DateTimeInterface
  300.      */
  301.     public function getUpdatedAt(): ?\DateTimeInterface
  302.     {
  303.         return $this->updatedAt;
  304.     }
  305.     
  306.     /**
  307.      * setUpdatedAt
  308.      *
  309.      * @param  mixed $updatedAt
  310.      * @return self
  311.      */
  312.     public function setUpdatedAt(?\DateTimeInterface $updatedAt): self
  313.     {
  314.         $this->updatedAt $updatedAt;
  315.         return $this;
  316.     }
  317.     public function getGenre(): ?string
  318.     {
  319.         return $this->genre;
  320.     }
  321.     public function setGenre(?string $genre): self
  322.     {
  323.         $this->genre $genre;
  324.         return $this;
  325.     }
  326.     public function isPresentiel(): ?bool
  327.     {
  328.         return $this->presentiel;
  329.     }
  330.     public function setPresentiel(?bool $presentiel): self
  331.     {
  332.         $this->presentiel $presentiel;
  333.         return $this;
  334.     }
  335.     public function isDistanciel(): ?bool
  336.     {
  337.         return $this->distanciel;
  338.     }
  339.     public function setDistanciel(?bool $distanciel): self
  340.     {
  341.         $this->distanciel $distanciel;
  342.         return $this;
  343.     }
  344.     public function getLien(): ?string
  345.     {
  346.         return $this->lien;
  347.     }
  348.     public function setLien(?string $lien): self
  349.     {
  350.         $this->lien $lien;
  351.         return $this;
  352.     }
  353. }