src/Entity/Faq.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\FaqRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassFaqRepository::class)]
  7. class Faq
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column(type'integer')]
  12.     private $id;
  13.     #[ORM\ManyToOne(inversedBy'faqs')]
  14.     #[ORM\JoinColumn(nullablefalse)]
  15.     private ?FaqTheme $faqTheme null;
  16.     #[ORM\Column(type'text')]
  17.     private $question;
  18.     #[ORM\Column(type'text')]
  19.     private $reponse;
  20.     public function getId(): ?int
  21.     {
  22.         return $this->id;
  23.     }
  24.     public function getFaqTheme(): ?FaqTheme
  25.     {
  26.         return $this->faqTheme;
  27.     }
  28.     public function setFaqTheme(?FaqTheme $faqTheme): self
  29.     {
  30.         $this->faqTheme $faqTheme;
  31.         return $this;
  32.     }
  33.     public function getQuestion(): ?string
  34.     {
  35.         return $this->question;
  36.     }
  37.     public function setQuestion(string $question): self
  38.     {
  39.         $this->question $question;
  40.         return $this;
  41.     }
  42.     public function getReponse(): ?string
  43.     {
  44.         return $this->reponse;
  45.     }
  46.     public function setReponse(string $reponse): self
  47.     {
  48.         $this->reponse $reponse;
  49.         return $this;
  50.     }
  51.     public function __toString()
  52.     {
  53.         return " ";
  54.     }
  55. }