src/Entity/Actuv2Sondage.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\Actuv2SondageRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * Actuv2Sondage
  7.  *
  8.  */
  9. #[ORM\Table(name'actuv2_sondage')]
  10. #[ORM\Entity(repositoryClassActuv2SondageRepository::class)]
  11. class Actuv2Sondage
  12. {
  13.     /**
  14.      * @var int
  15.      *
  16.      */
  17.     #[ORM\Column(name'id'type'bigint'nullablefalse)]
  18.     #[ORM\Id]
  19.     #[ORM\GeneratedValue(strategy'IDENTITY')]
  20.     private $id;
  21.     /**
  22.      * @var \DateTime|null
  23.      *
  24.      */
  25.     #[ORM\Column(name'date'type'date'nullabletrueoptions: ['comment' => 'pĂ©riode'])]
  26.     private $date;
  27.     /**
  28.      * @var string
  29.      *
  30.      */
  31.     #[ORM\Column(name'titre'type'string'length255nullablefalse)]
  32.     private $titre '';
  33.     /**
  34.      * @var string
  35.      *
  36.      */
  37.     #[ORM\Column(name'vote'type'string'length255nullablefalse)]
  38.     private $vote '';
  39.     public function getId(): ?string
  40.     {
  41.         return $this->id;
  42.     }
  43.     public function getDate(): ?\DateTimeInterface
  44.     {
  45.         return $this->date;
  46.     }
  47.     public function setDate(?\DateTimeInterface $date): self
  48.     {
  49.         $this->date $date;
  50.         return $this;
  51.     }
  52.     public function getTitre(): ?string
  53.     {
  54.         return $this->titre;
  55.     }
  56.     public function setTitre(string $titre): self
  57.     {
  58.         $this->titre $titre;
  59.         return $this;
  60.     }
  61.     public function getVote(): ?string
  62.     {
  63.         return $this->vote;
  64.     }
  65.     public function setVote(string $vote): self
  66.     {
  67.         $this->vote $vote;
  68.         return $this;
  69.     }
  70.     public function __toString()
  71.     {
  72.         return $this->getId();
  73.     }
  74. }