<?phpnamespace App\Entity;use Doctrine\ORM\Mapping as ORM;use App\Traits\CreatedUpdatedTrait;use Gedmo\Mapping\Annotation as Gedmo;use JMS\Serializer\Annotation\Expose;use JMS\Serializer\Annotation\Exclude;use JMS\Serializer\Annotation\ExclusionPolicy;use Doctrine\Common\Collections\ArrayCollection;/** * @ORM\Table(name="v_faq") * @ORM\Entity(repositoryClass="App\Repository\FaqRepository") * @ExclusionPolicy("all") */class Faq{ /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(type="integer") * @Expose */ private $id; /** * @ORM\ManyToOne(targetEntity="App\Entity\FaqCategory", inversedBy="faqs") * @Expose */ private $category; /** * @ORM\Column(type="text") * @Expose */ private $question; /** * @ORM\Column(type="text") * @Expose */ private $answer; /** * @ORM\Column(type="boolean") */ private $enabled = true; /** * @Gedmo\SortablePosition * @ORM\Column(name="position", type="integer") */ private $position; /** * @ORM\Column(type="string", length=20, nullable=true) * @Expose */ private $language; use CreatedUpdatedTrait; public function __toString() { return (string) $this->question; } public function getId(): ?int { return $this->id; } /** * @return mixed */ public function getCategory() { return $this->category; } /** * @param mixed $category */ public function setCategory($category): void { $this->category = $category; } 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; } /** * @return mixed */ public function getEnabled() { return $this->enabled; } /** * @param mixed $enabled */ public function setEnabled($enabled): void { $this->enabled = $enabled; } /** * @return mixed */ public function getPosition() { return $this->position; } /** * @param mixed $position */ public function setPosition($position): void { $this->position = $position; } /** * @return mixed */ public function getLanguage() { return $this->language; } /** * @param mixed $language */ public function setLanguage($language): void { $this->language = $language; }}