<?php
namespace App\Entity;
use App\Repository\QuestionReponseRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=QuestionReponseRepository::class)
*/
class QuestionReponse
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $image;
/**
* @ORM\Column(type="string", length=255)
*/
private $prenom;
/**
* @ORM\Column(type="date")
*/
private $date_question;
/**
* @ORM\Column(type="date", nullable=true)
*/
private $date_reponse;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $question;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $reponse;
/**
* @ORM\Column(type="string", length=255)
*/
private $nom;
/**
* @ORM\ManyToOne(targetEntity=Cas::class, inversedBy="questionReponses",cascade={"persist"})
*/
private $cas;
public function __construct()
{
$this->cas = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getImage(): ?string
{
return $this->image;
}
public function setImage(?string $image): self
{
$this->image = $image;
return $this;
}
public function getPrenom(): ?string
{
return $this->prenom;
}
public function setPrenom(?string $prenom): self
{
$this->prenom = $prenom;
return $this;
}
public function getDateQuestion(): ?\DateTimeInterface
{
return $this->date_question;
}
public function setDateQuestion(\DateTimeInterface $date_question): self
{
$this->date_question = $date_question;
return $this;
}
public function getDateReponse(): ?\DateTimeInterface
{
return $this->date_reponse;
}
public function setDateReponse(\DateTimeInterface $date_reponse): self
{
$this->date_reponse = $date_reponse;
return $this;
}
public function getQuestion(): ?string
{
return $this->question;
}
public function setQuestion(?string $question): self
{
$this->question = $question;
return $this;
}
public function getReponse(): ?string
{
return $this->reponse;
}
public function setReponse(?string $reponse): self
{
$this->reponse = $reponse;
return $this;
}
public function getNom(): ?string
{
return $this->nom;
}
public function setNom(?string $nom): self
{
$this->nom = $nom;
return $this;
}
public function getCas(): ?Cas
{
return $this->cas;
}
public function setCas(?Cas $cas): self
{
$this->cas = $cas;
return $this;
}
}