src/Entity/Actuv2Sondagevote.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\Actuv2SondagevoteRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * Actuv2Sondagevote
  7.  *
  8.  */
  9. #[ORM\Table(name'actuv2_sondageVote')]
  10. #[ORM\Entity]
  11. class Actuv2Sondagevote
  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 int
  23.      *
  24.      */
  25.     #[ORM\Column(name'FK_sondage'type'bigint'nullablefalse)]
  26.     private $fkSondage;
  27.     /**
  28.      * @var int
  29.      *
  30.      */
  31.     #[ORM\Column(name'FK_cabinet'type'bigint'nullablefalse)]
  32.     private $fkCabinet;
  33.     /**
  34.      * @var string
  35.      *
  36.      */
  37.     #[ORM\Column(name'ip'type'string'length50nullablefalse)]
  38.     private $ip '';
  39.     /**
  40.      * @var int
  41.      *
  42.      */
  43.     #[ORM\Column(name'reponse'type'integer'nullablefalseoptions: ['default' => -1'comment' => '1=oui ; 2=non'])]
  44.     private $reponse = -1;
  45.     public function getId(): ?string
  46.     {
  47.         return $this->id;
  48.     }
  49.     public function getFkSondage(): ?string
  50.     {
  51.         return $this->fkSondage;
  52.     }
  53.     public function setFkSondage(string $fkSondage): self
  54.     {
  55.         $this->fkSondage $fkSondage;
  56.         return $this;
  57.     }
  58.     public function getFkCabinet(): ?string
  59.     {
  60.         return $this->fkCabinet;
  61.     }
  62.     public function setFkCabinet(string $fkCabinet): self
  63.     {
  64.         $this->fkCabinet $fkCabinet;
  65.         return $this;
  66.     }
  67.     public function getIp(): ?string
  68.     {
  69.         return $this->ip;
  70.     }
  71.     public function setIp(string $ip): self
  72.     {
  73.         $this->ip $ip;
  74.         return $this;
  75.     }
  76.     public function getReponse(): ?int
  77.     {
  78.         return $this->reponse;
  79.     }
  80.     public function setReponse(int $reponse): self
  81.     {
  82.         $this->reponse $reponse;
  83.         return $this;
  84.     }
  85.     public function __toString()
  86.     {
  87.         return $this->getFkSondage();
  88.     }
  89. }