<?php
namespace App\Entity;
use App\Repository\PropositionReponseRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=PropositionReponseRepository::class)
*/
class PropositionReponse
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
*/
private $wording;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $valid;
/**
* @ORM\ManyToOne(targetEntity=QuestionTestB1::class, inversedBy="propositionReponses")
*/
private $questionTestb1;
/**
* @ORM\ManyToOne(targetEntity=SousQuestion::class, inversedBy="propositionReponseofSousquestion",cascade={"persist"})
*/
private $sousQuestion;
public function getId(): ?int
{
return $this->id;
}
public function getWording(): ?string
{
return $this->wording;
}
public function setWording(string $wording): self
{
$this->wording = $wording;
return $this;
}
public function isValid(): ?bool
{
return $this->valid;
}
public function setValid(?bool $valid): self
{
$this->valid = $valid;
return $this;
}
public function getQuestionTestb1(): ?QuestionTestB1
{
return $this->questionTestb1;
}
public function setQuestionTestb1(?QuestionTestB1 $questionTestb1): self
{
$this->questionTestb1 = $questionTestb1;
return $this;
}
public function getSousQuestion(): ?SousQuestion
{
return $this->sousQuestion;
}
public function setSousQuestion(?SousQuestion $sousQuestion): self
{
$this->sousQuestion = $sousQuestion;
return $this;
}
}