AddonValueService
in package
implements
AddonValueServiceInterface
Class AddonValueService
This service will handle the addon values for different contexts of the shop. The addon values is a mechanism for external developers to introduce values to key-entities of the project (e.g. order, product etc.) without further changing the database structure. Take a look at the "Storages" directory for the available storage classes. More classes will be created gradually.
Tags
Interfaces, Classes and Traits
- AddonValueServiceInterface
- Interface AddonValueServiceInterface
Table of Contents
- $addonValueStorageFactory : AddonValueStorageFactory
- __construct() : mixed
- AddonValueService Constructor
- deleteAddonValues() : AddonValueService
- Remove the addon values of a storage container.
- loadAddonValues() : AddonValueService
- Load the addon values of a storage container from the database.
- storeAddonValues() : AddonValueService
- Save the addon values of a storage container in the database.
Properties
$addonValueStorageFactory
protected
AddonValueStorageFactory
$addonValueStorageFactory
Methods
__construct()
AddonValueService Constructor
public
__construct(AddonValueStorageFactoryInterface $addonValueStorageFactory) : mixed
Parameters
- $addonValueStorageFactory : AddonValueStorageFactoryInterface
Return values
mixed —deleteAddonValues()
Remove the addon values of a storage container.
public
deleteAddonValues(AddonValueContainerInterface $container) : AddonValueService
Parameters
- $container : AddonValueContainerInterface
Return values
AddonValueService —Returns the class instance.
loadAddonValues()
Load the addon values of a storage container from the database.
public
loadAddonValues(AddonValueContainerInterface $container) : AddonValueService
Parameters
- $container : AddonValueContainerInterface
Return values
AddonValueService —Returns the class instance.
storeAddonValues()
Save the addon values of a storage container in the database.
public
storeAddonValues(AddonValueContainerInterface $container) : AddonValueService
Parameters
- $container : AddonValueContainerInterface
Return values
AddonValueService —Returns the class instance.