mirror of
https://forge.chapril.org/tykayn/caisse-bliss
synced 2025-06-20 01:44:42 +02:00
67 lines
1.3 KiB
PHP
67 lines
1.3 KiB
PHP
![]() |
<?php
|
||
|
|
||
|
namespace App\Entity;
|
||
|
|
||
|
use App\Repository\FestivalRepository;
|
||
|
use Doctrine\DBAL\Types\Types;
|
||
|
use Doctrine\ORM\Mapping as ORM;
|
||
|
|
||
|
#[ORM\Entity(repositoryClass: FestivalRepository::class)]
|
||
|
class Festival
|
||
|
{
|
||
|
#[ORM\Id]
|
||
|
#[ORM\GeneratedValue]
|
||
|
#[ORM\Column]
|
||
|
private ?int $id = null;
|
||
|
|
||
|
#[ORM\Column(length: 255)]
|
||
|
private ?string $name = null;
|
||
|
|
||
|
#[ORM\Column(type: Types::DATE_MUTABLE, nullable: true)]
|
||
|
private ?\DateTimeInterface $date_start = null;
|
||
|
|
||
|
#[ORM\Column(type: Types::DATE_MUTABLE)]
|
||
|
private ?\DateTimeInterface $date_end = null;
|
||
|
|
||
|
public function getId(): ?int
|
||
|
{
|
||
|
return $this->id;
|
||
|
}
|
||
|
|
||
|
public function getName(): ?string
|
||
|
{
|
||
|
return $this->name;
|
||
|
}
|
||
|
|
||
|
public function setName(string $name): static
|
||
|
{
|
||
|
$this->name = $name;
|
||
|
|
||
|
return $this;
|
||
|
}
|
||
|
|
||
|
public function getDateStart(): ?\DateTimeInterface
|
||
|
{
|
||
|
return $this->date_start;
|
||
|
}
|
||
|
|
||
|
public function setDateStart(?\DateTimeInterface $date_start): static
|
||
|
{
|
||
|
$this->date_start = $date_start;
|
||
|
|
||
|
return $this;
|
||
|
}
|
||
|
|
||
|
public function getDateEnd(): ?\DateTimeInterface
|
||
|
{
|
||
|
return $this->date_end;
|
||
|
}
|
||
|
|
||
|
public function setDateEnd(\DateTimeInterface $date_end): static
|
||
|
{
|
||
|
$this->date_end = $date_end;
|
||
|
|
||
|
return $this;
|
||
|
}
|
||
|
}
|