Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
State.php
Go to the documentation of this file.
1 <?php
8 
22 class State
23 {
24  const USE_TEMPORARY_INDEX = 'use_temporary_table';
25  const USE_REGULAR_INDEX = 'use_main_table';
26 
30  private $state = self::USE_REGULAR_INDEX;
31 
37  public function useTemporaryIndex()
38  {
39  $this->state = self::USE_TEMPORARY_INDEX;
40  }
41 
47  public function useRegularIndex()
48  {
49  $this->state = self::USE_REGULAR_INDEX;
50  }
51 
57  public function getState()
58  {
59  return $this->state;
60  }
61 }