src/Entity/ForumCharter.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ForumCharterRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use JMS\Serializer\Annotation as Serializer;
  6. /**
  7. * @ORM\Entity(repositoryClass=ForumCharterRepository::class)
  8. * @Serializer\ExclusionPolicy("ALL")
  9. */
  10. class ForumCharter extends BaseEntity
  11. {
  12. /**
  13. * @ORM\Id
  14. * @ORM\GeneratedValue
  15. * @ORM\Column(type="integer")
  16. * @Serializer\Expose
  17. */
  18. private $id;
  19. /**
  20. * @ORM\Column(type="string", length=255, nullable=true)
  21. * @Serializer\Expose
  22. */
  23. private $title;
  24. /**
  25. * @ORM\Column(type="string", length=10000000)
  26. * @Serializer\Expose
  27. */
  28. private $content;
  29. /**
  30. * @ORM\Column(type="boolean", nullable=true)
  31. */
  32. private $isActive;
  33. public function getId(): ?int
  34. {
  35. return $this->id;
  36. }
  37. public function getTitle(): ?string
  38. {
  39. return $this->title;
  40. }
  41. public function setTitle(?string $title): self
  42. {
  43. $this->title = $title;
  44. return $this;
  45. }
  46. public function getContent(): ?string
  47. {
  48. return $this->content;
  49. }
  50. public function setContent(string $content): self
  51. {
  52. $this->content = $content;
  53. return $this;
  54. }
  55. public function isIsActive(): ?bool
  56. {
  57. return $this->isActive;
  58. }
  59. public function setIsActive(?bool $isActive): self
  60. {
  61. $this->isActive = $isActive;
  62. return $this;
  63. }
  64. }