src/Entity/Actuv2QuizVote.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use DateTimeInterface;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use App\Repository\Actuv2QuizVoteRepository;
  6. /**
  7.  * Actuv2QuizVote
  8.  *
  9.  */
  10. #[ORM\Table(name'actuv2_quiz_vote')]
  11. #[ORM\Entity(repositoryClassActuv2QuizVoteRepository::class)]
  12. class Actuv2QuizVote
  13. {
  14.     /**
  15.      * @var int
  16.      *
  17.      */
  18.     #[ORM\Column(name'id'type'bigint'nullablefalse)]
  19.     #[ORM\Id]
  20.     #[ORM\GeneratedValue(strategy'IDENTITY')]
  21.     private $id;
  22.     #[ORM\ManyToOne(targetEntityActuv2QuizAnswer::class, inversedBy'id')]
  23.     #[ORM\JoinColumn(nullablefalse)]
  24.     private $answer;
  25.     #[ORM\ManyToOne(targetEntityActuv2Quiz::class, inversedBy'id' )]
  26.     #[ORM\JoinColumn(nullablefalse)]
  27.     private $quiz;
  28.     #[ORM\Column(name'date'type'date'nullabletrueoptions: ['comment' => 'pĂ©riode'])]
  29.     private $date;
  30.     /**
  31.      * @var string
  32.      *
  33.      */
  34.     #[ORM\Column(name'ip'type'string'length50nullablefalse)]
  35.     private $ip '';
  36.     public function __construct()
  37.     {
  38.     }
  39.     public function getId(): ?string
  40.     {
  41.         return $this->id;
  42.     }
  43.     public function getAnswer(): ?Actuv2QuizAnswer
  44.     {
  45.         return $this->answer;
  46.     }
  47.     public function setAnswer(?Actuv2QuizAnswer $answer): self
  48.     {
  49.         $this->answer $answer;
  50.         return $this;
  51.     }
  52.     public function getquiz(): ?Actuv2Quiz
  53.     {
  54.         return $this->quiz;
  55.     }
  56.     public function setquiz(?Actuv2Quiz $quiz): self
  57.     {
  58.         $this->quiz $quiz;
  59.         return $this;
  60.     }
  61.     public function getDate(): ?DateTimeInterface
  62.     {
  63.         return $this->date;
  64.     }
  65.     public function setDate(?\DateTimeInterface $date): self
  66.     {
  67.         $this->date $date;
  68.         return $this;
  69.     }
  70.     public function getIp(): ?string
  71.     {
  72.         return $this->ip;
  73.     }
  74.     public function setIp(string $ip): self
  75.     {
  76.         $this->ip $ip;
  77.         return $this;
  78.     }
  79. }