<?php
namespace App\Entity;
use App\Entity\Actuv2Quiz;
use Doctrine\ORM\Mapping as ORM;
use App\Repository\Actuv2QuizAnswerRepository;
/**
* Actuv2QuizAnswer
*
*/
#[ORM\Table(name: 'actuv2_quiz_answer')]
#[ORM\Entity(repositoryClass: Actuv2QuizAnswerRepository::class)]
class Actuv2QuizAnswer
{
/**
* @var int
*
*/
#[ORM\Column(name: 'id', type: 'bigint', nullable: false)]
#[ORM\Id]
#[ORM\GeneratedValue(strategy: 'IDENTITY')]
private $id;
#[ORM\Column(name: 'answer', type: 'text', nullable: false)]
private $answer;
#[ORM\ManyToOne(targetEntity: Actuv2Quiz::class, inversedBy: 'answers')]
#[ORM\JoinColumn(nullable: false)]
private $quiz;
#[ORM\Column(name: 'correct', type: 'boolean', nullable: true)]
private $correct = false;
public function __construct()
{
}
public function getId(): ?string
{
return $this->id;
}
public function getAnswer(): ?string
{
return $this->answer;
}
public function setAnswer(?string $answer): self
{
$this->answer = $answer;
return $this;
}
public function getquiz(): ?Actuv2Quiz
{
return $this->quiz;
}
public function setquiz(?Actuv2Quiz $quiz): self
{
$this->quiz = $quiz;
return $this;
}
public function getCorrect(): ?bool
{
return $this->correct;
}
public function setCorrect(?bool $correct): self
{
$this->correct = $correct;
return $this;
}
}