Collection.php 713 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\AsynchronousOperations\Model\ResourceModel\Operation;
  7. /**
  8. * Class Collection
  9. * @codeCoverageIgnore
  10. */
  11. class Collection extends \Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection
  12. {
  13. /**
  14. * Define collection item type and corresponding table
  15. *
  16. * @return void
  17. */
  18. protected function _construct()
  19. {
  20. $this->_init(
  21. \Magento\AsynchronousOperations\Model\Operation::class,
  22. \Magento\AsynchronousOperations\Model\ResourceModel\Operation::class
  23. );
  24. $this->setMainTable('magento_operation');
  25. }
  26. }