vendor/sulu/sulu/src/Sulu/Bundle/CategoryBundle/Entity/CategoryMeta.php line 17

Open in your IDE?
  1. <?php
  2. /*
  3. * This file is part of Sulu.
  4. *
  5. * (c) Sulu GmbH
  6. *
  7. * This source file is subject to the MIT license that is bundled
  8. * with this source code in the file LICENSE.
  9. */
  10. namespace Sulu\Bundle\CategoryBundle\Entity;
  11. /**
  12. * CategoryMeta.
  13. */
  14. class CategoryMeta implements CategoryMetaInterface
  15. {
  16. /**
  17. * @var string
  18. */
  19. protected $key;
  20. /**
  21. * @var string
  22. */
  23. protected $value;
  24. /**
  25. * @var string|null
  26. */
  27. protected $locale;
  28. /**
  29. * @var int
  30. */
  31. protected $id;
  32. /**
  33. * @var CategoryInterface
  34. */
  35. protected $category;
  36. public function setKey($key)
  37. {
  38. $this->key = $key;
  39. return $this;
  40. }
  41. public function getKey()
  42. {
  43. return $this->key;
  44. }
  45. public function setValue($value)
  46. {
  47. $this->value = $value;
  48. return $this;
  49. }
  50. public function getValue()
  51. {
  52. return $this->value;
  53. }
  54. public function setLocale($locale)
  55. {
  56. $this->locale = $locale;
  57. return $this;
  58. }
  59. /**
  60. * @return string|null
  61. */
  62. public function getLocale()
  63. {
  64. return $this->locale;
  65. }
  66. public function getId()
  67. {
  68. return $this->id;
  69. }
  70. public function setId($id)
  71. {
  72. $this->id = $id;
  73. return $this;
  74. }
  75. public function setCategory(CategoryInterface $category)
  76. {
  77. $this->category = $category;
  78. return $this;
  79. }
  80. public function getCategory()
  81. {
  82. return $this->category;
  83. }
  84. }