ProductOptionManagementInterface.php 608 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. *
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. namespace Magento\Bundle\Api;
  8. /**
  9. * Option manager for bundle products
  10. *
  11. * @api
  12. * @since 100.0.2
  13. */
  14. interface ProductOptionManagementInterface
  15. {
  16. /**
  17. * Add new option for bundle product
  18. *
  19. * @param \Magento\Bundle\Api\Data\OptionInterface $option
  20. * @return int
  21. * @throws \Magento\Framework\Exception\CouldNotSaveException
  22. * @throws \Magento\Framework\Exception\InputException
  23. */
  24. public function save(\Magento\Bundle\Api\Data\OptionInterface $option);
  25. }