src/Entity/Menu/WebsiteParents.php line 17

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Menu;
  3. use Doctrine\DBAL\Types\Types;
  4. use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
  5. use Symfony\Component\Validator\Constraints as Assert;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8. * Website Parents
  9. *
  10. * @ORM\Table("menu_website_parents")
  11. * @ORM\Entity(repositoryClass="App\Repository\Menu\WebsiteParentsRepository")
  12. * @ORM\HasLifecycleCallbacks()
  13. */
  14. class WebsiteParents
  15. {
  16. /**
  17. * @var integer
  18. *
  19. * @ORM\Column(name="id", type="integer")
  20. * @ORM\Id
  21. * @ORM\GeneratedValue(strategy="AUTO")
  22. */
  23. protected $id;
  24. /**
  25. * @var string
  26. *
  27. * @ORM\Column(name="created_at", type="datetime", nullable=true, options={"comment":"Date de création"})
  28. */
  29. private $createdAt;
  30. /**
  31. * @var string
  32. *
  33. * @ORM\Column(name="title", type="string", length=255, nullable=true)
  34. */
  35. private $title;
  36. /**
  37. * @var string
  38. *
  39. * @ORM\Column(name="link", type="string", length=255, nullable=true)
  40. */
  41. private $link;
  42. /**
  43. * @var string
  44. *
  45. * @ORM\Column(name="visibility", type="boolean", nullable=true)
  46. */
  47. private $visibility;
  48. /**
  49. * @var string
  50. *
  51. * @ORM\Column(name="target_blank", type="boolean", nullable=true)
  52. */
  53. private $targetBlank;
  54. /**
  55. * @var string
  56. *
  57. * @ORM\Column(name="type", type="string", length=255, nullable=true)
  58. */
  59. private $type;
  60. /**
  61. * @var string $filename
  62. *
  63. * @ORM\Column(name="sequence", type="integer", length=11, nullable=true)
  64. */
  65. protected $sequence;
  66. /**
  67. * @var string
  68. *
  69. * @ORM\Column(name="typeButton", type="string", length=255, nullable=true)
  70. */
  71. private $typeButton;
  72. /**
  73. * @var string
  74. *
  75. * @ORM\Column(name="visibilityUser", type="boolean", nullable=true)
  76. */
  77. private $visibilityUser;
  78. /**
  79. * @var string
  80. *
  81. * @ORM\Column(name="private", type="boolean", nullable=true)
  82. */
  83. private $private;
  84. /**
  85. * @var string
  86. *
  87. * @ORM\Column(name="no_private", type="boolean", nullable=true)
  88. */
  89. private $noPrivate;
  90. /**
  91. * @var string
  92. *
  93. * @ORM\Column(name="website", type="boolean", nullable=true)
  94. */
  95. private $website;
  96. /**
  97. * @var string
  98. *
  99. * @ORM\Column(name="recruiter", type="boolean", nullable=true)
  100. */
  101. private $recruiter;
  102. /**
  103. * @var string
  104. *
  105. * @ORM\Column(name="company", type="boolean", nullable=true)
  106. */
  107. private $company;
  108. /**
  109. * @var string
  110. *
  111. * @ORM\Column(name="langue", type="string", length=255, nullable=true)
  112. */
  113. private $language;
  114. /**
  115. * @ORM\PrePersist
  116. */
  117. public function setCreatedAtValue(): void
  118. {
  119. $this->setCreatedAt(new \DateTime("now"));
  120. }
  121. /**
  122. * @ORM\PreUpdate
  123. */
  124. public function setUpdatedAtValue(): void
  125. {
  126. }
  127. public function __toString()
  128. {
  129. return $this->title;
  130. }
  131. public function getId(): ?int
  132. {
  133. return $this->id;
  134. }
  135. public function getCreatedAt(): ?\DateTimeInterface
  136. {
  137. return $this->createdAt;
  138. }
  139. public function setCreatedAt(?\DateTimeInterface $createdAt): self
  140. {
  141. $this->createdAt = $createdAt;
  142. return $this;
  143. }
  144. public function getTitle(): ?string
  145. {
  146. return $this->title;
  147. }
  148. public function setTitle(?string $title): self
  149. {
  150. $this->title = $title;
  151. return $this;
  152. }
  153. public function getLink(): ?string
  154. {
  155. return $this->link;
  156. }
  157. public function setLink(?string $link): self
  158. {
  159. $this->link = $link;
  160. return $this;
  161. }
  162. public function getSequence(): ?int
  163. {
  164. return $this->sequence;
  165. }
  166. public function setSequence(?int $sequence): self
  167. {
  168. $this->sequence = $sequence;
  169. return $this;
  170. }
  171. public function getType(): ?string
  172. {
  173. return $this->type;
  174. }
  175. public function setType(?string $type): self
  176. {
  177. $this->type = $type;
  178. return $this;
  179. }
  180. public function getTargetBlank(): ?bool
  181. {
  182. return $this->targetBlank;
  183. }
  184. public function setTargetBlank(?bool $targetBlank): self
  185. {
  186. $this->targetBlank = $targetBlank;
  187. return $this;
  188. }
  189. public function getTypeButton(): ?string
  190. {
  191. return $this->typeButton;
  192. }
  193. public function setTypeButton(?string $typeButton): self
  194. {
  195. $this->typeButton = $typeButton;
  196. return $this;
  197. }
  198. public function getVisibilityUser(): ?bool
  199. {
  200. return $this->visibilityUser;
  201. }
  202. public function setVisibilityUser(?bool $visibilityUser): self
  203. {
  204. $this->visibilityUser = $visibilityUser;
  205. return $this;
  206. }
  207. public function getVisibility(): ?bool
  208. {
  209. return $this->visibility;
  210. }
  211. public function setVisibility(?bool $visibilityUser): self
  212. {
  213. $this->visibility = $visibilityUser;
  214. return $this;
  215. }
  216. public function getNoPrivate(): ?bool
  217. {
  218. return $this->noPrivate;
  219. }
  220. public function setNoPrivate(?bool $visibilityUser): self
  221. {
  222. $this->noPrivate = $visibilityUser;
  223. return $this;
  224. }
  225. public function getPrivate(): ?bool
  226. {
  227. return $this->private;
  228. }
  229. public function setPrivate(?bool $visibilityUser): self
  230. {
  231. $this->private = $visibilityUser;
  232. return $this;
  233. }
  234. public function getWebsite(): ?bool
  235. {
  236. return $this->website;
  237. }
  238. public function setWebsite(?bool $website): self
  239. {
  240. $this->website = $website;
  241. return $this;
  242. }
  243. public function getRecruiter(): ?bool
  244. {
  245. return $this->recruiter;
  246. }
  247. public function setRecruiter(?bool $recruiter): self
  248. {
  249. $this->recruiter = $recruiter;
  250. return $this;
  251. }
  252. public function getCompany(): ?bool
  253. {
  254. return $this->company;
  255. }
  256. public function setCompany(?bool $company): self
  257. {
  258. $this->company = $company;
  259. return $this;
  260. }
  261. public function isVisibility(): ?bool
  262. {
  263. return $this->visibility;
  264. }
  265. public function isTargetBlank(): ?bool
  266. {
  267. return $this->targetBlank;
  268. }
  269. public function isVisibilityUser(): ?bool
  270. {
  271. return $this->visibilityUser;
  272. }
  273. public function isPrivate(): ?bool
  274. {
  275. return $this->private;
  276. }
  277. public function isNoPrivate(): ?bool
  278. {
  279. return $this->noPrivate;
  280. }
  281. public function isWebsite(): ?bool
  282. {
  283. return $this->website;
  284. }
  285. public function isRecruiter(): ?bool
  286. {
  287. return $this->recruiter;
  288. }
  289. public function isCompany(): ?bool
  290. {
  291. return $this->company;
  292. }
  293. public function getLanguage(): ?string
  294. {
  295. return $this->language;
  296. }
  297. public function setLanguage(?string $language): self
  298. {
  299. $this->language = $language;
  300. return $this;
  301. }
  302. }