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(repositoryClass: FaqRepository::class)]
  7. class Faq
  8. {
  9. #[ORM\Id]
  10. #[ORM\GeneratedValue]
  11. #[ORM\Column]
  12. private ?int $id = null;
  13. #[ORM\Column(type: Types::TEXT, nullable: true)]
  14. private ?string $question = null;
  15. #[ORM\Column(type: Types::TEXT, nullable: true)]
  16. private ?string $ans = null;
  17. public function getId(): ?int
  18. {
  19. return $this->id;
  20. }
  21. public function getQuestion(): ?string
  22. {
  23. return $this->question;
  24. }
  25. public function setQuestion(?string $question): static
  26. {
  27. $this->question = $question;
  28. return $this;
  29. }
  30. public function getAns(): ?string
  31. {
  32. return $this->ans;
  33. }
  34. public function setAns(?string $ans): static
  35. {
  36. $this->ans = $ans;
  37. return $this;
  38. }
  39. }