/
githubmirror
/
magento2
Обзор
Документация
Войти
/
githubmirror
/
magento2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.4-develop
lib/internal/Magento/Framework/Mview/View/StateInterface.php
127 строк
2 KB
Alexandra Zota
ACP2E-4019: CE copyright updates for 2.4.9-beta1
22 окт 2025, 17:47
22 окт 2025, 17:47
1b769b7
Код
Авторство
О чём код?
<?php /** * Copyright 2014 Adobe * All Rights Reserved. */ 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); }