BundleOptionInterface.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Bundle\Api\Data;
  7. /**
  8. * Interface BundleOptionInterface
  9. * @api
  10. * @since 100.0.2
  11. */
  12. interface BundleOptionInterface extends \Magento\Framework\Api\ExtensibleDataInterface
  13. {
  14. /**
  15. * Get bundle option id.
  16. *
  17. * @return int
  18. */
  19. public function getOptionId();
  20. /**
  21. * Set bundle option id.
  22. *
  23. * @param int $optionId
  24. * @return int
  25. */
  26. public function setOptionId($optionId);
  27. /**
  28. * Get bundle option quantity.
  29. *
  30. * @return int
  31. */
  32. public function getOptionQty();
  33. /**
  34. * Set bundle option quantity.
  35. *
  36. * @param int $optionQty
  37. * @return int
  38. */
  39. public function setOptionQty($optionQty);
  40. /**
  41. * Get bundle option selection ids.
  42. *
  43. * @return int[]
  44. */
  45. public function getOptionSelections();
  46. /**
  47. * Set bundle option selection ids.
  48. *
  49. * @param int[] $optionSelections
  50. * @return int[]
  51. */
  52. public function setOptionSelections(array $optionSelections);
  53. /**
  54. * Retrieve existing extension attributes object or create a new one.
  55. *
  56. * @return \Magento\Bundle\Api\Data\BundleOptionExtensionInterface|null
  57. */
  58. public function getExtensionAttributes();
  59. /**
  60. * Set an extension attributes object.
  61. *
  62. * @param \Magento\Bundle\Api\Data\BundleOptionExtensionInterface $extensionAttributes
  63. * @return $this
  64. */
  65. public function setExtensionAttributes(
  66. \Magento\Bundle\Api\Data\BundleOptionExtensionInterface $extensionAttributes
  67. );
  68. }