VariantSaveCommand
extends AbstractSaveCommand
in package
implements
CommandInterface, AlwaysNewStrategyInterface
Class VariantSaveCommand
Interfaces, Classes and Traits
- CommandInterface
- Interface CommandInterface
- AlwaysNewStrategyInterface
- Interface AlwaysNewStrategyInterface
Table of Contents
- $option : AbstractOption
- $variantService : VariantService
- $configurationRepository : SettingsRepository
- __construct() : mixed
- VariantSaveCommand constructor.
- execute() : void
- Execute the command
- rollback() : void
- Execute the command
- setConfigurationRepository() : void
- setOption() : void
- configurationRepository() : SettingsRepository
- option() : VariantOption
- restoreVariantSettings() : mixed
- saveOption() : void
Properties
$option
protected
AbstractOption
$option
$variantService
protected
VariantService
$variantService
$configurationRepository
private
SettingsRepository
$configurationRepository
Methods
__construct()
VariantSaveCommand constructor.
public
__construct(VariantService $variantService, SettingsRepository $configurationRepository) : mixed
Parameters
- $variantService : VariantService
- $configurationRepository : SettingsRepository
Return values
mixed —execute()
Execute the command
public
execute() : void
Tags
Return values
void —rollback()
Execute the command
public
rollback() : void
Return values
void —setConfigurationRepository()
public
setConfigurationRepository(SettingsRepository $configurationRepository) : void
Parameters
- $configurationRepository : SettingsRepository
Return values
void —setOption()
public
setOption(OptionInterface $option) : void
Parameters
- $option : OptionInterface
Return values
void —configurationRepository()
protected
configurationRepository() : SettingsRepository
Tags
Return values
SettingsRepository —option()
protected
option() : VariantOption
Return values
VariantOption —restoreVariantSettings()
protected
restoreVariantSettings() : mixed
Tags
Return values
mixed —saveOption()
protected
saveOption() : void