ConfigurableItemOptionValueInterface.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\ConfigurableProduct\Api\Data;
  7. /**
  8. * Interface ConfigurableItemOptionValueInterface
  9. * @api
  10. * @since 100.0.2
  11. */
  12. interface ConfigurableItemOptionValueInterface extends \Magento\Framework\Api\ExtensibleDataInterface
  13. {
  14. /**#@+
  15. * Constants defined for keys of array, makes typos less likely
  16. */
  17. const OPTION_ID = 'option_id';
  18. const OPTION_VALUE = 'option_value';
  19. /**#@-*/
  20. /**
  21. * Get option SKU
  22. *
  23. * @return string
  24. */
  25. public function getOptionId();
  26. /**
  27. * Set option SKU
  28. *
  29. * @param string $value
  30. * @return void
  31. */
  32. public function setOptionId($value);
  33. /**
  34. * Get item id
  35. *
  36. * @return int|null
  37. */
  38. public function getOptionValue();
  39. /**
  40. * Set item id
  41. *
  42. * @param int|null $value
  43. * @return void
  44. */
  45. public function setOptionValue($value);
  46. /**
  47. * Retrieve existing extension attributes object or create a new one.
  48. *
  49. * @return \Magento\ConfigurableProduct\Api\Data\ConfigurableItemOptionValueExtensionInterface|null
  50. */
  51. public function getExtensionAttributes();
  52. /**
  53. * Set an extension attributes object.
  54. *
  55. * @param \Magento\ConfigurableProduct\Api\Data\ConfigurableItemOptionValueExtensionInterface $extensionAttributes
  56. * @return $this
  57. */
  58. public function setExtensionAttributes(
  59. \Magento\ConfigurableProduct\Api\Data\ConfigurableItemOptionValueExtensionInterface $extensionAttributes
  60. );
  61. }