Collection.php 782 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. declare(strict_types=1);
  7. namespace Magento\Inventory\Model\ResourceModel\StockSourceLink;
  8. use Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection;
  9. use Magento\Inventory\Model\ResourceModel\StockSourceLink as StockSourceLinkResourceModel;
  10. use Magento\Inventory\Model\StockSourceLink as StockSourceLinkModel;
  11. /**
  12. * Resource Collection of StockSourceLink entities
  13. * It is not an API because StockSourceLink used in module internally
  14. */
  15. class Collection extends AbstractCollection
  16. {
  17. /**
  18. * @inheritdoc
  19. */
  20. protected function _construct()
  21. {
  22. $this->_init(StockSourceLinkModel::class, StockSourceLinkResourceModel::class);
  23. }
  24. }