<?php namespace App\Entity; use App\Repository\QuizzResponseRepository; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass=QuizzResponseRepository::class) */ class QuizzResponse { /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=255) */ private $title; /** * @ORM\Column(type="boolean") */ private $exact; /** * @ORM\ManyToOne(targetEntity=QuizzQuestion::class, inversedBy="position") * @ORM\JoinColumn(nullable=false) */ private $quizzQuestion; /** * @ORM\Column(type="integer") */ private $position; public function getId(): ?int { return $this->id; } public function getTitle(): ?string { return $this->title; } public function setTitle( string $title ): self { $this->title = $title; return $this; } public function getExact(): ?bool { return $this->exact; } public function setExact( bool $exact ): self { $this->exact = $exact; return $this; } public function getQuizzQuestion(): ?QuizzQuestion { return $this->quizzQuestion; } public function setQuizzQuestion( ?QuizzQuestion $quizzQuestion ): self { $this->quizzQuestion = $quizzQuestion; return $this; } public function getPosition(): ?int { return $this->position; } public function setPosition( int $position ): self { $this->position = $position; return $this; } }