<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use App\Repository\QuestionRepository;
#[ORM\Entity(repositoryClass: QuestionRepository::class)]
class Question
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'string', length: 255)]
private $nom;
#[ORM\ManyToOne(targetEntity: Questionnaire::class)]
#[ORM\JoinColumn(nullable: false)]
private $questionnaire;
#[ORM\Column(type: 'string', length: 30)]
private $type;
#[ORM\ManyToOne(targetEntity: CategorieQuestion::class)]
#[ORM\JoinColumn(nullable: false)]
private $categorie;
#[ORM\Column(type: 'string', length: 20, nullable: true)]
private $libelleFix;
#[ORM\Column(type: 'boolean')]
private $active;
#[ORM\Column(type: 'integer')]
private $coef;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $commentaireSujetsPreoccupants;
public function getId(): ?int
{
return $this->id;
}
public function getNom(): ?string
{
return $this->nom;
}
public function setNom(string $nom): self
{
$this->nom = $nom;
return $this;
}
public function getQuestionnaire(): ?Questionnaire
{
return $this->questionnaire;
}
public function setQuestionnaire(?Questionnaire $formulaire): self
{
$this->questionnaire = $formulaire;
return $this;
}
public function getType(): ?string
{
return $this->type;
}
public function setType(string $type): self
{
$this->type = $type;
return $this;
}
public function getCategorie(): ?CategorieQuestion
{
return $this->categorie;
}
public function setCategorie(?CategorieQuestion $categorie): self
{
$this->categorie = $categorie;
return $this;
}
public function getLibelleFix(): ?string
{
return $this->libelleFix;
}
public function setLibelleFix(?string $libelleFix): self
{
$this->libelleFix = $libelleFix;
return $this;
}
public function getActive(): ?bool
{
return $this->active;
}
public function setActive(bool $active): self
{
$this->active = $active;
return $this;
}
public function getCoef(): ?int
{
return $this->coef;
}
public function setCoef(int $coef): self
{
$this->coef = $coef;
return $this;
}
public function getCommentaireSujetsPreoccupants(): ?string
{
return $this->commentaireSujetsPreoccupants;
}
public function setCommentaireSujetsPreoccupants(?string $commentaireSujetsPreoccupants = null): self
{
$this->commentaireSujetsPreoccupants = $commentaireSujetsPreoccupants;
return $this;
}
}