![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/magento/framework/Mview/View/ |
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ declare(strict_types=1); namespace Magento\Framework\Mview\View; /** * Interface \Magento\Framework\Mview\View\StateInterface * * @api */ interface StateInterface { /**#@+ * View modes */ const MODE_ENABLED = 'enabled'; const MODE_DISABLED = 'disabled'; /**#@-*/ /**#@+ * View statuses */ const STATUS_IDLE = 'idle'; const STATUS_WORKING = 'working'; const STATUS_SUSPENDED = 'suspended'; /**#@-*/ /** * Fill object with state data by view ID * * @param string $viewId * @return $this */ public function loadByView($viewId); /** * Save state object * * @return \Magento\Framework\Mview\View\StateInterface * @throws \Exception */ public function save(); /** * Delete state object * * @return \Magento\Framework\Mview\View\StateInterface * @throws \Exception */ public function delete(); /** * Get state view ID * * @return string */ public function getViewId(); /** * Get state mode * * @return string */ public function getMode(); /** * Set state mode * * @param string $mode * @return \Magento\Framework\Mview\View\StateInterface */ public function setMode($mode); /** * Get state status * * @return string */ public function getStatus(); /** * Set state status * * @param string $status * @return \Magento\Framework\Mview\View\StateInterface */ public function setStatus($status); /** * Get state version ID * * @return string */ public function getVersionId(); /** * Set state version ID * * @param int $versionId * @return \Magento\Framework\Mview\View\StateInterface */ public function setVersionId($versionId); /** * Get state updated time * * @return string */ public function getUpdated(); /** * Set state updated time * * @param string|int|\DateTimeInterface $updated * @return \Magento\Framework\Mview\View\StateInterface */ public function setUpdated($updated); }