<?php
namespace App\Entity;
use App\Repository\FaqRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: FaqRepository::class)]
class Faq
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\ManyToOne(inversedBy: 'faqs')]
#[ORM\JoinColumn(nullable: false)]
private ?FaqTheme $faqTheme = null;
#[ORM\Column(type: 'text')]
private $question;
#[ORM\Column(type: 'text')]
private $reponse;
public function getId(): ?int
{
return $this->id;
}
public function getFaqTheme(): ?FaqTheme
{
return $this->faqTheme;
}
public function setFaqTheme(?FaqTheme $faqTheme): self
{
$this->faqTheme = $faqTheme;
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 __toString()
{
return " ";
}
}