<?php
namespace App\Entity;
use App\Repository\FaqRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=FaqRepository::class)
*/
class Faq
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
*/
private $question;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $response;
/**
* @ORM\ManyToOne(targetEntity=TypeGuide::class, inversedBy="faqs")
* @ORM\JoinColumn(nullable=false)
*/
private $faq_type;
public function getId(): ?int
{
return $this->id;
}
public function getQuestion(): ?string
{
return $this->question;
}
public function setQuestion(string $question): self
{
$this->question = $question;
return $this;
}
public function getResponse(): ?string
{
return $this->response;
}
public function setResponse(?string $response): self
{
$this->response = $response;
return $this;
}
public function getFaqType(): ?TypeGuide
{
return $this->faq_type;
}
public function setFaqType(?TypeGuide $faq_type): self
{
$this->faq_type = $faq_type;
return $this;
}
}