AddonValueStorageFactory
in package
implements
AddonValueStorageFactoryInterface
Class AddonValueStorageFactory
Tags
Interfaces, Classes and Traits
- AddonValueStorageFactoryInterface
- Interface AddonValueStorageFactoryInterface
Table of Contents
- $db : CI_DB_query_builder
- $map : array<string|int, mixed>
- Contains the container-storage mapping used for the creation of the correct storage object.
- __construct() : mixed
- AddonValueStorageFactory Constructor
- createAddonValueStorageByContainerObject() : AbstractAddonValueStorage
- Creates the correct addon value storage container object.
Properties
$db
protected
CI_DB_query_builder
$db
$map
Contains the container-storage mapping used for the creation of the correct storage object.
protected
array<string|int, mixed>
$map
= ['OrderInterface' => 'OrderAddonValueStorage', 'OrderItemInterface' => 'OrderItemAddonValueStorage', 'CustomerInterface' => 'CustomerAddonValueStorage', 'CategoryInterface' => 'CategoryAddonValueStorage', 'ProductInterface' => 'ProductAddonValueStorage']
Methods
__construct()
AddonValueStorageFactory Constructor
public
__construct(CI_DB_query_builder $db) : mixed
Parameters
- $db : CI_DB_query_builder
Return values
mixed —createAddonValueStorageByContainerObject()
Creates the correct addon value storage container object.
public
createAddonValueStorageByContainerObject(AddonValueContainerInterface $container) : AbstractAddonValueStorage
Parameters
- $container : AddonValueContainerInterface