<?php
namespace App\Entity;
use App\Repository\RequeteRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=RequeteRepository::class)
*/
class Requete
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=Choix::class, inversedBy="requetes")
* @ORM\JoinColumn(nullable=false)
*/
private $choix;
/**
* @ORM\Column(type="string", length=255)
*/
private $nom;
public function getId(): ?int
{
return $this->id;
}
public function getChoix(): ?Choix
{
return $this->choix;
}
public function setChoix(?Choix $choix): self
{
$this->choix = $choix;
return $this;
}
public function getNom(): ?string
{
return $this->nom;
}
public function setNom(string $nom): self
{
$this->nom = $nom;
return $this;
}
}