src/Entity/Questionnaire.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use App\Repository\QuestionnaireRepository;
  5. #[ORM\Entity(repositoryClassQuestionnaireRepository::class)]
  6. class Questionnaire
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private $id;
  12.     #[ORM\Column(type'date')]
  13.     private $dateCreation;
  14.     #[ORM\Column(type'string'length100)]
  15.     private $titre;
  16.     #[ORM\Column(type'boolean')]
  17.     private $actif;
  18.     public function getId(): ?int
  19.     {
  20.         return $this->id;
  21.     }
  22.     public function getDateCreation(): ?\DateTimeInterface
  23.     {
  24.         return $this->dateCreation;
  25.     }
  26.     public function setDateCreation(\DateTimeInterface $dateCreation): self
  27.     {
  28.         $this->dateCreation $dateCreation;
  29.         return $this;
  30.     }
  31.     public function getTitre(): ?string
  32.     {
  33.         return $this->titre;
  34.     }
  35.     public function setTitre(string $titre): self
  36.     {
  37.         $this->titre $titre;
  38.         return $this;
  39.     }
  40.     public function getActif(): ?bool
  41.     {
  42.         return $this->actif;
  43.     }
  44.     public function setActif(bool $actif): self
  45.     {
  46.         $this->actif $actif;
  47.         return $this;
  48.     }
  49. }