Help.php 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. <?php
  2. namespace AppBundle\Entity\Help;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Dunglas\ApiBundle\Annotation\Iri;
  5. use Symfony\Component\Serializer\Annotation\Groups;
  6. use Symfony\Component\Validator\Constraints as Assert;
  7. use AppBundle\Entity\Traits\TimestampableEntity;
  8. use AppBundle\Entity\Traits\CreatorUpdaterEntity;
  9. /**
  10. * (Non utilisé, à confirmer)
  11. *
  12. * @Iri("http://schema.org/Help")
  13. */
  14. #[ORM\Entity]
  15. class Help
  16. {
  17. use TimestampableEntity;
  18. use CreatorUpdaterEntity;
  19. /**
  20. * @var int
  21. */
  22. #[ORM\Column(type: 'integer')]
  23. #[ORM\Id]
  24. #[ORM\GeneratedValue(strategy: 'AUTO')]
  25. #[Groups(['help'])]
  26. private $id;
  27. /**
  28. * @var string
  29. */
  30. #[ORM\Column(type: 'string', length: 200, nullable: true)]
  31. #[Assert\Type(type: 'string')]
  32. #[Groups(['help'])]
  33. private $uid;
  34. /**
  35. * @var string
  36. */
  37. #[ORM\Column(type: 'string', length: 255, nullable: true)]
  38. #[Assert\Type(type: 'string')]
  39. #[Groups(['help'])]
  40. private $title;
  41. /**
  42. * @var string
  43. */
  44. #[ORM\Column(type: 'text', nullable: true)]
  45. #[Assert\Type(type: 'string')]
  46. #[Groups(['help'])]
  47. private $description;
  48. /**
  49. * Sets id.
  50. *
  51. * @param int $id
  52. *
  53. * @return $this
  54. */
  55. public function setId($id)
  56. {
  57. $this->id = $id;
  58. return $this;
  59. }
  60. /**
  61. * Gets id.
  62. *
  63. * @return int
  64. */
  65. public function getId()
  66. {
  67. return $this->id;
  68. }
  69. /**
  70. * Sets uid.
  71. *
  72. * @param string $uid
  73. *
  74. * @return $this
  75. */
  76. public function setUid($uid)
  77. {
  78. $this->uid = $uid;
  79. return $this;
  80. }
  81. /**
  82. * Gets uid.
  83. *
  84. * @return string
  85. */
  86. public function getUid()
  87. {
  88. return $this->uid;
  89. }
  90. /**
  91. * Sets title.
  92. *
  93. * @param string $title
  94. *
  95. * @return $this
  96. */
  97. public function setTitle($title)
  98. {
  99. $this->title = $title;
  100. return $this;
  101. }
  102. /**
  103. * Gets title.
  104. *
  105. * @return string
  106. */
  107. public function getTitle()
  108. {
  109. return $this->title;
  110. }
  111. /**
  112. * Sets description.
  113. *
  114. * @param string $description
  115. *
  116. * @return $this
  117. */
  118. public function setDescription($description)
  119. {
  120. $this->description = $description;
  121. return $this;
  122. }
  123. /**
  124. * Gets description.
  125. *
  126. * @return string
  127. */
  128. public function getDescription()
  129. {
  130. return $this->description;
  131. }
  132. }