123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\Framework\Mview\View;
- /**
- * Interface \Magento\Framework\Mview\View\StateInterface
- *
- */
- 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);
- }
|