GroupInterface.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Store\Api\Data;
  7. /**
  8. * Group interface
  9. *
  10. * @api
  11. * @since 100.0.2
  12. */
  13. interface GroupInterface extends \Magento\Framework\Api\ExtensibleDataInterface
  14. {
  15. /**
  16. * @return int
  17. */
  18. public function getId();
  19. /**
  20. * @param int $id
  21. * @return $this
  22. */
  23. public function setId($id);
  24. /**
  25. * @return int
  26. */
  27. public function getWebsiteId();
  28. /**
  29. * @param int $websiteId
  30. * @return $this
  31. */
  32. public function setWebsiteId($websiteId);
  33. /**
  34. * @return int
  35. */
  36. public function getRootCategoryId();
  37. /**
  38. * @param int $rootCategoryId
  39. * @return $this
  40. */
  41. public function setRootCategoryId($rootCategoryId);
  42. /**
  43. * @return int
  44. */
  45. public function getDefaultStoreId();
  46. /**
  47. * @param int $defaultStoreId
  48. * @return $this
  49. */
  50. public function setDefaultStoreId($defaultStoreId);
  51. /**
  52. * @return string
  53. */
  54. public function getName();
  55. /**
  56. * @param string $name
  57. * @return $this
  58. */
  59. public function setName($name);
  60. /**
  61. * Retrieves group code.
  62. * Group code is a unique field.
  63. *
  64. * @return string
  65. * @since 100.2.0
  66. */
  67. public function getCode();
  68. /**
  69. * Sets group code.
  70. *
  71. * @param string $code
  72. * @return $this
  73. * @since 100.2.0
  74. */
  75. public function setCode($code);
  76. /**
  77. * Retrieve existing extension attributes object or create a new one.
  78. *
  79. * @return \Magento\Store\Api\Data\GroupExtensionInterface|null
  80. */
  81. public function getExtensionAttributes();
  82. /**
  83. * Set an extension attributes object.
  84. *
  85. * @param \Magento\Store\Api\Data\GroupExtensionInterface $extensionAttributes
  86. * @return $this
  87. */
  88. public function setExtensionAttributes(
  89. \Magento\Store\Api\Data\GroupExtensionInterface $extensionAttributes
  90. );
  91. }