src/Entity/Speciality.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Gedmo\Mapping\Annotation as Gedmo;
  5. use Symfony\Component\Serializer\Annotation\Groups;
  6. /**
  7. * Speciality
  8. *
  9. * @ORM\Table(name="speciality")
  10. * @ORM\Entity(repositoryClass="App\Repository\SpecialityRepository")
  11. */
  12. class Speciality
  13. {
  14. /**
  15. * @var int
  16. *
  17. * @ORM\Column(name="id", type="integer", nullable=false)
  18. * @ORM\Id
  19. * @ORM\GeneratedValue(strategy="IDENTITY")
  20. */
  21. private $id;
  22. /**
  23. * @var string|null
  24. *
  25. * @ORM\Column(name="label", type="string", length=255, nullable=true, options={"default"="NULL"})
  26. * @Groups({"public-api"})
  27. */
  28. private $label;
  29. /**
  30. * @var string|null
  31. *
  32. * @ORM\Column(name="job", type="string", length=255, nullable=true, options={"default"="NULL"})
  33. */
  34. private $job;
  35. /**
  36. * @var string|null
  37. *
  38. * @ORM\Column(name="jobs", type="string", length=255, nullable=true, options={"default"="NULL"})
  39. */
  40. private $jobs;
  41. /**
  42. * @var string|null
  43. *
  44. * @ORM\Column(name="picture", type="string", length=255, nullable=true, options={"default"="NULL"})
  45. */
  46. private $picture;
  47. /**
  48. * @var string|null
  49. *
  50. * @ORM\Column(name="page_content", type="text", nullable=true, options={"default"="NULL"})
  51. */
  52. private $pageContent;
  53. /**
  54. * @var \Doctrine\Common\Collections\Collection
  55. *
  56. * @ORM\ManyToMany(targetEntity="Partner", mappedBy="speciality")
  57. */
  58. private $partner = array();
  59. /**
  60. * @var string|null
  61. *
  62. * @ORM\Column(name="tags", type="string", nullable=true, options={"default"="NULL"})
  63. */
  64. private $tags;
  65. /**
  66. * @var string|null
  67. * @Gedmo\Slug(fields={"label"}, updatable=true)
  68. * @ORM\Column(name="slug", type="string", length=255, nullable=true)
  69. */
  70. private $slug;
  71. /**
  72. * @var string|null
  73. * @Gedmo\Slug(fields={"job"}, updatable=true)
  74. * @ORM\Column(name="slug_job", type="string", length=255, nullable=true)
  75. */
  76. private $slugJob;
  77. /**
  78. * @var string|null
  79. *
  80. * @ORM\Column(name="meta_title", type="string", length=255, nullable=true, options={"default"="NULL"})
  81. */
  82. private $metaTitle;
  83. /**
  84. * @var string|null
  85. *
  86. * @ORM\Column(name="meta_description", type="string", length=255, nullable=true, options={"default"="NULL"})
  87. */
  88. private $metaDescription;
  89. /**
  90. * Constructor
  91. */
  92. public function __construct()
  93. {
  94. $this->partner = new \Doctrine\Common\Collections\ArrayCollection();
  95. }
  96. /**
  97. * @return int
  98. */
  99. public function getId(): int
  100. {
  101. return $this->id;
  102. }
  103. /**
  104. * @param int $id
  105. */
  106. public function setId(int $id): void
  107. {
  108. $this->id = $id;
  109. }
  110. /**
  111. * @return string|null
  112. */
  113. public function getLabel(): ?string
  114. {
  115. return $this->label;
  116. }
  117. /**
  118. * @param string|null $label
  119. */
  120. public function setLabel(?string $label): void
  121. {
  122. $this->label = $label;
  123. }
  124. /**
  125. * @return string|null
  126. */
  127. public function getJob(): ?string
  128. {
  129. return $this->job;
  130. }
  131. /**
  132. * @param string|null $job
  133. */
  134. public function setJob(?string $job): void
  135. {
  136. $this->job = $job;
  137. }
  138. /**
  139. * @return string|null
  140. */
  141. public function getJobs(): ?string
  142. {
  143. return $this->jobs;
  144. }
  145. /**
  146. * @param string|null $jobs
  147. */
  148. public function setJobs(?string $jobs): void
  149. {
  150. $this->jobs = $jobs;
  151. }
  152. /**
  153. * @return string|null
  154. */
  155. public function getPicture(): ?string
  156. {
  157. return $this->picture;
  158. }
  159. /**
  160. * @param string|null $picture
  161. */
  162. public function setPicture(?string $picture): void
  163. {
  164. $this->picture = $picture;
  165. }
  166. /**
  167. * @return string|null
  168. */
  169. public function getPageContent(): ?string
  170. {
  171. return $this->pageContent;
  172. }
  173. /**
  174. * @param string|null $pageContent
  175. */
  176. public function setPageContent(?string $pageContent): void
  177. {
  178. $this->pageContent = $pageContent;
  179. }
  180. /**
  181. * @return \Doctrine\Common\Collections\Collection
  182. */
  183. public function getPartner()
  184. {
  185. return $this->partner;
  186. }
  187. /**
  188. * @param \Doctrine\Common\Collections\Collection $partner
  189. */
  190. public function setPartner($partner): void
  191. {
  192. $this->partner = $partner;
  193. }
  194. /**
  195. * @return string|null
  196. */
  197. public function getTags(): ?string
  198. {
  199. return $this->tags;
  200. }
  201. /**
  202. * @param string|null $tags
  203. */
  204. public function setTags(?string $tags): void
  205. {
  206. $this->tags = $tags;
  207. }
  208. /**
  209. * @return string|null
  210. */
  211. public function getSlug(): ?string
  212. {
  213. return $this->slug;
  214. }
  215. /**
  216. * @param string|null $slug
  217. */
  218. public function setSlug(?string $slug): void
  219. {
  220. $this->slug = $slug;
  221. }
  222. public function getSlugJob(): ?string
  223. {
  224. return $this->slugJob;
  225. }
  226. public function setSlugJob(?string $slugJob): void
  227. {
  228. $this->slugJob = $slugJob;
  229. }
  230. /**
  231. * @return string|null
  232. */
  233. public function getMetaTitle(): ?string
  234. {
  235. return $this->metaTitle;
  236. }
  237. /**
  238. * @param string|null $metaTitle
  239. */
  240. public function setMetaTitle(?string $metaTitle): void
  241. {
  242. $this->metaTitle = $metaTitle;
  243. }
  244. /**
  245. * @return string|null
  246. */
  247. public function getMetaDescription(): ?string
  248. {
  249. return $this->metaDescription;
  250. }
  251. /**
  252. * @param string|null $metaDescription
  253. */
  254. public function setMetaDescription(?string $metaDescription): void
  255. {
  256. $this->metaDescription = $metaDescription;
  257. }
  258. }