<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use App\Repository\QuestionnaireRepository;
#[ORM\Entity(repositoryClass: QuestionnaireRepository::class)]
class Questionnaire
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'date')]
private $dateCreation;
#[ORM\Column(type: 'string', length: 100)]
private $titre;
#[ORM\Column(type: 'boolean')]
private $actif;
public function getId(): ?int
{
return $this->id;
}
public function getDateCreation(): ?\DateTimeInterface
{
return $this->dateCreation;
}
public function setDateCreation(\DateTimeInterface $dateCreation): self
{
$this->dateCreation = $dateCreation;
return $this;
}
public function getTitre(): ?string
{
return $this->titre;
}
public function setTitre(string $titre): self
{
$this->titre = $titre;
return $this;
}
public function getActif(): ?bool
{
return $this->actif;
}
public function setActif(bool $actif): self
{
$this->actif = $actif;
return $this;
}
}