src/Entity/FAQTranslation.php line 10

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\FAQTranslationRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassFAQTranslationRepository::class)]
  7. class FAQTranslation
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\ManyToOne(inversedBy'fAQTranslations')]
  14.     private ?FAQ $faq null;
  15.     #[ORM\Column(length255nullabletrue)]
  16.     private ?string $question null;
  17.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  18.     private ?string $answer null;
  19.     #[ORM\Column(length2nullabletrue)]
  20.     private ?string $locale null;
  21.     public function getId(): ?int
  22.     {
  23.         return $this->id;
  24.     }
  25.     public function getFaq(): ?FAQ
  26.     {
  27.         return $this->faq;
  28.     }
  29.     public function setFaq(?FAQ $faq): self
  30.     {
  31.         $this->faq $faq;
  32.         return $this;
  33.     }
  34.     public function getQuestion(): ?string
  35.     {
  36.         return $this->question;
  37.     }
  38.     public function setQuestion(?string $question): self
  39.     {
  40.         $this->question $question;
  41.         return $this;
  42.     }
  43.     public function getAnswer(): ?string
  44.     {
  45.         return $this->answer;
  46.     }
  47.     public function setAnswer(?string $answer): self
  48.     {
  49.         $this->answer $answer;
  50.         return $this;
  51.     }
  52.     public function getLocale(): ?string
  53.     {
  54.         return $this->locale;
  55.     }
  56.     public function setLocale(?string $locale): self
  57.     {
  58.         $this->locale $locale;
  59.         return $this;
  60.     }
  61. }