<?php
namespace App\Entity\Gos;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\FaqItemRepository")
*/
class FaqItem
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
*/
private $question;
/**
* @ORM\Column(type="text")
*/
private $answer;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Gos\FaqSection", inversedBy="faqItems", cascade={"persist"})
*/
private $faqSection;
public function __toString()
{
return $this->question;
}
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 getFaqSection(): ?FaqSection
{
return $this->faqSection;
}
public function setFaqSection(?FaqSection $faqSection): self
{
$this->faqSection = $faqSection;
return $this;
}
}