37 lines
688 B
PHP
37 lines
688 B
PHP
<?php
|
|
|
|
namespace App\Entity;
|
|
|
|
use App\Repository\FormulaireRepository;
|
|
use Doctrine\DBAL\Types\Types;
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
#[ORM\Entity(repositoryClass: FormulaireRepository::class)]
|
|
class Formulaire
|
|
{
|
|
#[ORM\Id]
|
|
#[ORM\GeneratedValue]
|
|
#[ORM\Column]
|
|
private ?int $id = null;
|
|
|
|
#[ORM\Column(type: Types::DATE_MUTABLE)]
|
|
private ?\DateTimeInterface $Date = null;
|
|
|
|
public function getId(): ?int
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
public function getDate(): ?\DateTimeInterface
|
|
{
|
|
return $this->Date;
|
|
}
|
|
|
|
public function setDate(\DateTimeInterface $Date): static
|
|
{
|
|
$this->Date = $Date;
|
|
|
|
return $this;
|
|
}
|
|
}
|