ClearCacheCommand
in package
implements
CommandInterface
Class ClearCacheCommand
Interfaces, Classes and Traits
- CommandInterface
- Interface CommandInterface
Table of Contents
- $cacheCleaner : CacheCleanerInterface
- $clearShopCache : bool
- $currentTheme : CurrentThemeInterface
- __construct() : mixed
- ClearCacheCommand constructor.
- execute() : void
- Execute the command
- rollback() : void
- Execute the command
- setClearShopCache() : void
- setOption() : void
Properties
$cacheCleaner
protected
CacheCleanerInterface
$cacheCleaner
$clearShopCache
protected
bool
$clearShopCache
$currentTheme
protected
CurrentThemeInterface
$currentTheme
Methods
__construct()
ClearCacheCommand constructor.
public
__construct(CacheCleanerInterface $cacheCleaner, CurrentThemeInterface $currentTheme) : mixed
Parameters
- $cacheCleaner : CacheCleanerInterface
- $currentTheme : CurrentThemeInterface
Return values
mixed —execute()
Execute the command
public
execute() : void
Return values
void —rollback()
Execute the command
public
rollback() : void
Return values
void —setClearShopCache()
public
setClearShopCache(bool $clearShopCache) : void
Parameters
- $clearShopCache : bool
Return values
void —setOption()
public
setOption(OptionInterface $option) : void
Parameters
- $option : OptionInterface