ExchangeFactoryInterface.php 713 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\MessageQueue\Bulk;
  7. /**
  8. * Factory class for @see \Magento\Framework\MessageQueue\Bulk\ExchangeInterface
  9. *
  10. * @api
  11. * @since 102.0.1
  12. */
  13. interface ExchangeFactoryInterface
  14. {
  15. /**
  16. * Create exchange instance.
  17. *
  18. * @param string $connectionName
  19. * @param array $data
  20. * @return ExchangeInterface
  21. * @throws \LogicException If exchange is not defined for the specified connection type
  22. * or it doesn't implement ExchangeInterface
  23. * @since 102.0.1
  24. */
  25. public function create($connectionName, array $data = []);
  26. }