1234567891011121314151617181920212223242526272829303132 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- declare(strict_types=1);
- namespace Magento\Indexer\Model;
- /**
- * Interface to switch indexer mode
- */
- interface ModeSwitcherInterface
- {
- /**
- * Returns data object that contains dimension modes
- *
- * @return DimensionModes
- */
- public function getDimensionModes(): DimensionModes;
- /**
- * Switch dimension mode
- *
- * @param string $currentMode
- * @param string $previousMode
- * @throws \InvalidArgumentException
- * @throws \Zend_Db_Exception
- * @return void
- */
- public function switchMode(string $currentMode, string $previousMode);
- }
|