ConnectionAdapterInterface.php 689 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\App\ResourceConnection;
  7. use Magento\Framework\DB\Adapter\AdapterInterface;
  8. use Magento\Framework\DB\LoggerInterface;
  9. use Magento\Framework\DB\SelectFactory;
  10. /**
  11. * Connection adapter interface
  12. *
  13. */
  14. interface ConnectionAdapterInterface
  15. {
  16. /**
  17. * Get connection
  18. *
  19. * @param LoggerInterface|null $logger
  20. * @param SelectFactory|null $selectFactory
  21. * @return AdapterInterface
  22. * @throws \InvalidArgumentException
  23. */
  24. public function getConnection(LoggerInterface $logger = null, SelectFactory $selectFactory = null);
  25. }