EntityTags.php 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. <?php
  2. namespace Muzich\CoreBundle\Document;
  3. use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoDB;
  4. /**
  5. * @MongoDB\MappedSuperclass
  6. */
  7. class EntityTags
  8. {
  9. const TYPE_USER = 'User';
  10. const TYPE_GROUP = 'Group';
  11. const TYPE_PLAYLIST = 'Playlist';
  12. /**
  13. * @MongoDB\Id
  14. */
  15. protected $id;
  16. /**
  17. * @MongoDB\Int
  18. * @MongoDB\Index(unique=true)
  19. */
  20. protected $ref;
  21. /**
  22. * @MongoDB\Collection
  23. */
  24. protected $tags_top_1;
  25. /**
  26. * @MongoDB\Collection
  27. */
  28. protected $tags_top_2;
  29. /**
  30. * @MongoDB\Collection
  31. */
  32. protected $tags_top_3;
  33. /**
  34. * @MongoDB\Collection
  35. */
  36. protected $tags_top_5;
  37. /**
  38. * @MongoDB\Collection
  39. */
  40. protected $tags_top_10;
  41. /**
  42. * @MongoDB\Collection
  43. */
  44. protected $tags_top_25;
  45. /**
  46. * @MongoDB\Collection
  47. */
  48. protected $tags_all;
  49. public function getId()
  50. {
  51. return $this->id;
  52. }
  53. public function getRef()
  54. {
  55. return $this->ref;
  56. }
  57. public function setRef($ref)
  58. {
  59. $this->ref = (int)$ref;
  60. }
  61. public function getTagsAll()
  62. {
  63. return $this->tags_all;
  64. }
  65. public function setTagsAll($tags)
  66. {
  67. $this->tags_all = $tags;
  68. }
  69. public function setTagsTop1($tags)
  70. {
  71. $this->tags_top_1 = $tags;
  72. }
  73. public function getTagsTop1()
  74. {
  75. return $this->tags_top_1;
  76. }
  77. public function setTagsTop2($tags)
  78. {
  79. $this->tags_top_2 = $tags;
  80. }
  81. public function getTagsTop2()
  82. {
  83. return $this->tags_top_2;
  84. }
  85. public function setTagsTop3($tags)
  86. {
  87. $this->tags_top_3 = $tags;
  88. }
  89. public function getTagsTop3()
  90. {
  91. return $this->tags_top_3;
  92. }
  93. public function setTagsTop5($tags)
  94. {
  95. $this->tags_top_5 = $tags;
  96. }
  97. public function getTagsTop5()
  98. {
  99. return $this->tags_top_5;
  100. }
  101. public function setTagsTop10($tags)
  102. {
  103. $this->tags_top_10 = $tags;
  104. }
  105. public function getTagsTop10()
  106. {
  107. return $this->tags_top_10;
  108. }
  109. public function setTagsTop25($tags)
  110. {
  111. $this->tags_top_25 = $tags;
  112. }
  113. public function getTagsTop25()
  114. {
  115. return $this->tags_top_25;
  116. }
  117. }