src/Entity/Faq.php line 20

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use App\Repository\FaqRepository;
  5. use App\Entity\Traits\ActiveTrait;
  6. use App\Entity\Traits\DeleteTrait;
  7. use App\Entity\Traits\SortOrderTrait;
  8. use App\Entity\Traits\TranslateTrait;
  9. use Gedmo\Mapping\Annotation as Gedmo;
  10. use App\Entity\Interfaces\DefaultEntity;
  11. use App\Entity\Traits\TitleAndContentTrait;
  12. use Gedmo\Timestampable\Traits\TimestampableEntity;
  13. /**
  14. * @Gedmo\Loggable
  15. */
  16. #[ORM\Entity(repositoryClass: FaqRepository::class)]
  17. class Faq implements DefaultEntity
  18. {
  19. use TitleAndContentTrait;
  20. use SortOrderTrait;
  21. use ActiveTrait;
  22. use DeleteTrait;
  23. use TimestampableEntity;
  24. use TranslateTrait;
  25. #[ORM\Id]
  26. #[ORM\GeneratedValue]
  27. #[ORM\Column(type:"integer")]
  28. private $id;
  29. #[ORM\Column(type: 'boolean')]
  30. private $popular;
  31. public function getId(): ?int
  32. {
  33. return $this->id;
  34. }
  35. public function getPopular(): ?bool
  36. {
  37. return $this->popular;
  38. }
  39. public function setPopular(bool $popular): self
  40. {
  41. $this->popular = $popular;
  42. return $this;
  43. }
  44. }