Query.php 543 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. /**
  7. * Retrieving collection data by querying a database
  8. */
  9. namespace Magento\Framework\Data\Collection\Db\FetchStrategy;
  10. use Magento\Framework\DB\Select;
  11. class Query implements \Magento\Framework\Data\Collection\Db\FetchStrategyInterface
  12. {
  13. /**
  14. * {@inheritdoc}
  15. */
  16. public function fetchAll(Select $select, array $bindParams = [])
  17. {
  18. return $select->getConnection()->fetchAll($select, $bindParams);
  19. }
  20. }