AttributeGroupInterface.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Eav\Api\Data;
  7. use Magento\Framework\Api\ExtensibleDataInterface;
  8. /**
  9. * Interface AttributeGroupInterface
  10. * @api
  11. * @since 100.0.2
  12. */
  13. interface AttributeGroupInterface extends ExtensibleDataInterface
  14. {
  15. const GROUP_ID = 'attribute_group_id';
  16. const GROUP_NAME = 'attribute_group_name';
  17. const ATTRIBUTE_SET_ID = 'attribute_set_id';
  18. /**
  19. * Retrieve id
  20. *
  21. * @return string|null
  22. */
  23. public function getAttributeGroupId();
  24. /**
  25. * Set id
  26. *
  27. * @param string $attributeGroupId
  28. * @return $this
  29. */
  30. public function setAttributeGroupId($attributeGroupId);
  31. /**
  32. * Retrieve name
  33. *
  34. * @return string|null
  35. */
  36. public function getAttributeGroupName();
  37. /**
  38. * Set name
  39. *
  40. * @param string $attributeGroupName
  41. * @return $this
  42. */
  43. public function setAttributeGroupName($attributeGroupName);
  44. /**
  45. * Retrieve attribute set id
  46. *
  47. * @return int|null
  48. */
  49. public function getAttributeSetId();
  50. /**
  51. * Set attribute set id
  52. *
  53. * @param int $attributeSetId
  54. * @return $this
  55. */
  56. public function setAttributeSetId($attributeSetId);
  57. /**
  58. * Retrieve existing extension attributes object.
  59. *
  60. * @return \Magento\Eav\Api\Data\AttributeGroupExtensionInterface|null
  61. */
  62. public function getExtensionAttributes();
  63. /**
  64. * Set an extension attributes object.
  65. *
  66. * @param \Magento\Eav\Api\Data\AttributeGroupExtensionInterface $extensionAttributes
  67. * @return $this
  68. */
  69. public function setExtensionAttributes(
  70. \Magento\Eav\Api\Data\AttributeGroupExtensionInterface $extensionAttributes
  71. );
  72. }