<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use App\Repository\LibelleReponseRepository;
#[ORM\Entity(repositoryClass: LibelleReponseRepository::class)]
class LibelleReponse
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'string', length: 50)]
private $libelle;
#[ORM\Column(type: 'integer')]
private $min;
#[ORM\Column(type: 'integer')]
private $max;
#[ORM\ManyToOne(targetEntity: Question::class)]
#[ORM\JoinColumn(nullable: false)]
private $question;
#[ORM\Column(type: 'string', length: 10, nullable: true)]
private $couleur;
public function getId(): ?int
{
return $this->id;
}
public function getLibelle(): ?string
{
return $this->libelle;
}
public function setLibelle(string $libelle): self
{
$this->libelle = $libelle;
return $this;
}
public function getMin(): ?int
{
return $this->min;
}
public function setMin(int $min): self
{
$this->min = $min;
return $this;
}
public function getMax(): ?int
{
return $this->max;
}
public function setMax(int $max): self
{
$this->max = $max;
return $this;
}
public function getQuestion(): ?Question
{
return $this->question;
}
public function setQuestion(?Question $question): self
{
$this->question = $question;
return $this;
}
public function getCouleur(): ?string
{
return $this->couleur;
}
public function setCouleur(?string $couleur): self
{
$this->couleur = $couleur;
return $this;
}
}