UserTags.php 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <?php
  2. namespace Muzich\CoreBundle\Document;
  3. use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoDB;
  4. use Muzich\CoreBundle\Document\EntityTags;
  5. /**
  6. * @MongoDB\Document
  7. */
  8. class UserTags extends EntityTags
  9. {
  10. /**
  11. * @MongoDB\Collection
  12. */
  13. protected $element_diffusion_tags;
  14. /**
  15. * @MongoDB\Collection
  16. */
  17. protected $element_favorite_tags;
  18. /**
  19. * @MongoDB\Collection
  20. */
  21. protected $element_playlist_tags;
  22. public function getElementDiffusionTags()
  23. {
  24. if (!$this->element_diffusion_tags)
  25. return array();
  26. return $this->element_diffusion_tags;
  27. }
  28. public function setElementDiffusionTags($tags)
  29. {
  30. $this->element_diffusion_tags = $tags;
  31. }
  32. public function getElementFavoriteTags()
  33. {
  34. if (!$this->element_favorite_tags)
  35. return array();
  36. return $this->element_favorite_tags;
  37. }
  38. public function setElementFavoriteTags($tags)
  39. {
  40. $this->element_favorite_tags = $tags;
  41. }
  42. public function getElementPlaylistTags()
  43. {
  44. if (!$this->element_playlist_tags)
  45. return array();
  46. return $this->element_playlist_tags;
  47. }
  48. public function setElementPlaylistTags($tags)
  49. {
  50. $this->element_playlist_tags = $tags;
  51. }
  52. }