ConfigurableProductManagementInterface.php 832 B

1234567891011121314151617181920212223242526272829303132
  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. * Interface ConfigurableProductManagementInterface
  10. * @api
  11. * @since 100.0.2
  12. */
  13. interface ConfigurableProductManagementInterface
  14. {
  15. /**
  16. * Generate variation based on same product
  17. *
  18. * @param \Magento\Catalog\Api\Data\ProductInterface $product
  19. * @param \Magento\ConfigurableProduct\Api\Data\OptionInterface[] $options
  20. * @return \Magento\Catalog\Api\Data\ProductInterface[]
  21. */
  22. public function generateVariation(\Magento\Catalog\Api\Data\ProductInterface $product, $options);
  23. /**
  24. * Provide the number of product count
  25. *
  26. * @param int|null $status
  27. * @return int
  28. */
  29. public function getCount($status = null);
  30. }