* @copyright 2021 DIGITAL RETAIL TECHNOLOGIES SL * @license https://opensource.org/licenses/MIT The MIT License * * Don't forget to prefix your containers with your own identifier * to avoid any conflicts with others containers. */ interface RetailcrmEventInterface { /** * Executes event. Event MUST return true if it was executed. False should be returned only when event * found out that it's already running. * * @return bool */ public function execute(); /** * Returns event name * * @return string */ public function getName(); /** * Sets cli mode to true. CLI mode here stands for any execution outside of JobManager context. * * @param bool $mode */ public function setCliMode($mode); /** * Sets force mode to true. Force mode here stands for any execution outside of JobManager & CLI context. * * @param bool $force */ public function setForce($force); /** * Sets context shop id. * * @param $shopId */ public function setShopId($shopId); }