<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=ReponseRepository::class)
*/
class Reponse
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="text")
*/
private $lilibelle;
/**
* @ORM\Column(type="boolean", length=1)
*/
private $bonnereponse;
/**
* @ORM\ManyToOne(targetEntity=Question::class, inversedBy="reponses")
* @ORM\JoinColumn(nullable=false)
*/
private $question;
public function getId(): ?int
{
return $this->id;
}
public function getLilibelle(): ?string
{
return $this->lilibelle;
}
public function setLilibelle(string $lilibelle): self
{
$this->lilibelle = $lilibelle;
return $this;
}
public function getBonnereponse(): ?bool
{
return $this->bonnereponse;
}
public function setBonnereponse(bool $bonnereponse): self
{
$this->bonnereponse = $bonnereponse;
return $this;
}
public function getQuestion(): ?Question
{
return $this->question;
}
public function setQuestion(?Question $question): self
{
$this->question = $question;
return $this;
}
}