<?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="text")
*/
private $question;
/**
* @ORM\Column(type="text")
*/
private $answer;
/**
* @ORM\ManyToOne(targetEntity=Expertise::class, inversedBy="faqs")
* @ORM\JoinColumn(nullable=true)
*/
private $expertise;
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 getAnswer(): ?string
{
return $this->answer;
}
public function setAnswer(string $answer): self
{
$this->answer = $answer;
return $this;
}
public function getExpertise(): ?Expertise
{
return $this->expertise;
}
public function setExpertise(?Expertise $expertise): self
{
$this->expertise = $expertise;
return $this;
}
}