State.php 516 B

1234567891011121314151617181920
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Indexer\Model\ResourceModel\Indexer;
  7. class State extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb
  8. {
  9. /**
  10. * Resource initialization
  11. *
  12. * @return void
  13. */
  14. protected function _construct()
  15. {
  16. $this->_init('indexer_state', 'state_id');
  17. $this->addUniqueField(['field' => ['indexer_id'], 'title' => __('State for the same indexer')]);
  18. }
  19. }