OptionSelectBuilderInterface.php 735 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\ConfigurableProduct\Model\ResourceModel\Attribute;
  7. use Magento\Eav\Model\Entity\Attribute\AbstractAttribute;
  8. use Magento\Framework\App\ScopeInterface;
  9. use Magento\Framework\DB\Select;
  10. /**
  11. * Interface to build select for retrieving configurable options.
  12. */
  13. interface OptionSelectBuilderInterface
  14. {
  15. /**
  16. * Get load options for attribute select.
  17. *
  18. * @param AbstractAttribute $superAttribute
  19. * @param int $productId
  20. * @param ScopeInterface $scope
  21. * @return Select
  22. */
  23. public function getSelect(AbstractAttribute $superAttribute, int $productId, ScopeInterface $scope);
  24. }