src/Entity/Content/Tag.php line 135

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Content;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * Tag
  6. *
  7. * @ORM\Table(name="tag")
  8. * @ORM\Entity(repositoryClass="App\Repository\Content\TagRepository")
  9. * @ORM\Cache(usage="READ_ONLY", region="public")
  10. */
  11. class Tag
  12. {
  13. /**
  14. * @var int
  15. *
  16. * @ORM\Column(name="id", type="integer")
  17. * @ORM\Id
  18. * @ORM\GeneratedValue(strategy="AUTO")
  19. */
  20. private $id;
  21. /**
  22. * @var string
  23. *
  24. * @ORM\Column(name="name", type="string", length=255)
  25. */
  26. private $name;
  27. /**
  28. * @var string
  29. *
  30. * @ORM\Column(name="slug", type="string", length=255, unique=true)
  31. */
  32. private $slug;
  33. /**
  34. * @var Blog
  35. *
  36. * @ORM\ManyToOne(targetEntity="App\Entity\Content\Blog", inversedBy="tags")
  37. * @ORM\JoinColumn(name="blog", referencedColumnName="id")
  38. */
  39. private $blog;
  40. /**
  41. * @var \DateTime
  42. *
  43. * @ORM\Column(name="created_at", type="datetime", nullable=true)
  44. */
  45. private $createdAt;
  46. /**
  47. * @var \DateTime
  48. *
  49. * @ORM\Column(name="updated_at", type="datetime", nullable=true)
  50. */
  51. private $updatedAt;
  52. /**
  53. * @var \DateTime
  54. *
  55. * @ORM\Column(name="synced_at", type="datetime", nullable=true)
  56. */
  57. private $syncedAt;
  58. /**
  59. * @var \DateTime
  60. *
  61. * @ORM\Column(name="index_at", type="datetime", nullable=true)
  62. */
  63. private $indexAt;
  64. /**
  65. * Get id
  66. *
  67. * @return int
  68. */
  69. public function getId()
  70. {
  71. return $this->id;
  72. }
  73. /**
  74. * Set name
  75. *
  76. * @param string $name
  77. */
  78. public function setName($name): static
  79. {
  80. $this->name = $name;
  81. return $this;
  82. }
  83. /**
  84. * Get name
  85. *
  86. * @return string
  87. */
  88. public function getName()
  89. {
  90. return $this->name;
  91. }
  92. /**
  93. * Set slug
  94. *
  95. * @param string $slug
  96. */
  97. public function setSlug($slug): static
  98. {
  99. $this->slug = $slug;
  100. return $this;
  101. }
  102. /**
  103. * Get slug
  104. *
  105. * @return string
  106. */
  107. public function getSlug()
  108. {
  109. return $this->slug;
  110. }
  111. /**
  112. * Set blog
  113. *
  114. *
  115. */
  116. public function setBlog(\App\Entity\Content\Blog $blog = null): static
  117. {
  118. $this->blog = $blog;
  119. return $this;
  120. }
  121. /**
  122. * Get blog
  123. *
  124. * @return \App\Entity\Content\Blog
  125. */
  126. public function getBlog()
  127. {
  128. return $this->blog;
  129. }
  130. /**
  131. * Set createdAt
  132. *
  133. * @param \DateTime $createdAt
  134. */
  135. public function setCreatedAt($createdAt): static
  136. {
  137. $this->createdAt = $createdAt;
  138. return $this;
  139. }
  140. /**
  141. * Get createdAt
  142. *
  143. * @return \DateTime
  144. */
  145. public function getCreatedAt()
  146. {
  147. return $this->createdAt;
  148. }
  149. /**
  150. * Set updatedAt
  151. *
  152. * @param \DateTime $updatedAt
  153. */
  154. public function setUpdatedAt($updatedAt): static
  155. {
  156. $this->updatedAt = $updatedAt;
  157. return $this;
  158. }
  159. /**
  160. * Get updatedAt
  161. *
  162. * @return \DateTime
  163. */
  164. public function getUpdatedAt()
  165. {
  166. return $this->updatedAt;
  167. }
  168. /**
  169. * Set syncedAt
  170. *
  171. * @param \DateTime $syncedAt
  172. */
  173. public function setSyncedAt($syncedAt): static
  174. {
  175. $this->syncedAt = $syncedAt;
  176. return $this;
  177. }
  178. /**
  179. * Get syncedAt
  180. *
  181. * @return \DateTime
  182. */
  183. public function getSyncedAt()
  184. {
  185. return $this->syncedAt;
  186. }
  187. /**
  188. * Set indexAt
  189. *
  190. * @param \DateTime $indexAt
  191. */
  192. public function setIndexAt($indexAt): static
  193. {
  194. $this->indexAt = $indexAt;
  195. return $this;
  196. }
  197. /**
  198. * Get indexAt
  199. *
  200. * @return \DateTime
  201. */
  202. public function getIndexAt()
  203. {
  204. return $this->indexAt;
  205. }
  206. }