AttributeSetInterface.php 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. /**
  8. * Interface AttributeSetInterface
  9. * @api
  10. * @since 100.0.2
  11. */
  12. interface AttributeSetInterface extends \Magento\Framework\Api\ExtensibleDataInterface
  13. {
  14. /**
  15. * Get attribute set ID
  16. *
  17. * @return int|null
  18. */
  19. public function getAttributeSetId();
  20. /**
  21. * Set attribute set ID
  22. *
  23. * @param int $attributeSetId
  24. * @return $this
  25. */
  26. public function setAttributeSetId($attributeSetId);
  27. /**
  28. * Get attribute set name
  29. *
  30. * @return string
  31. */
  32. public function getAttributeSetName();
  33. /**
  34. * Set attribute set name
  35. *
  36. * @param string $attributeSetName
  37. * @return $this
  38. */
  39. public function setAttributeSetName($attributeSetName);
  40. /**
  41. * Get attribute set sort order index
  42. *
  43. * @return int
  44. */
  45. public function getSortOrder();
  46. /**
  47. * Set attribute set sort order index
  48. *
  49. * @param int $sortOrder
  50. * @return $this
  51. */
  52. public function setSortOrder($sortOrder);
  53. /**
  54. * Get attribute set entity type id
  55. *
  56. * @return int|null
  57. */
  58. public function getEntityTypeId();
  59. /**
  60. * Set attribute set entity type id
  61. *
  62. * @param int $entityTypeId
  63. * @return $this
  64. */
  65. public function setEntityTypeId($entityTypeId);
  66. /**
  67. * Retrieve existing extension attributes object or create a new one.
  68. *
  69. * @return \Magento\Eav\Api\Data\AttributeSetExtensionInterface|null
  70. */
  71. public function getExtensionAttributes();
  72. /**
  73. * Set an extension attributes object.
  74. *
  75. * @param \Magento\Eav\Api\Data\AttributeSetExtensionInterface|null $extensionAttributes
  76. * @return $this
  77. */
  78. public function setExtensionAttributes(\Magento\Eav\Api\Data\AttributeSetExtensionInterface $extensionAttributes);
  79. }