LinkManagementInterface.php 937 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. *
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. namespace Magento\ConfigurableProduct\Api;
  8. /**
  9. * Manage children products of configurable product
  10. *
  11. * @api
  12. * @since 100.0.2
  13. */
  14. interface LinkManagementInterface
  15. {
  16. /**
  17. * Get all children for Configurable product
  18. *
  19. * @param string $sku
  20. * @return \Magento\Catalog\Api\Data\ProductInterface[]
  21. */
  22. public function getChildren($sku);
  23. /**
  24. * @param string $sku
  25. * @param string $childSku
  26. * @return bool
  27. */
  28. public function addChild($sku, $childSku);
  29. /**
  30. * Remove configurable product option
  31. *
  32. * @param string $sku
  33. * @param string $childSku
  34. * @throws \Magento\Framework\Exception\NoSuchEntityException
  35. * @throws \Magento\Framework\Exception\InputException
  36. * @return bool
  37. */
  38. public function removeChild($sku, $childSku);
  39. }