OrderItemAttributeRepositoryFactory
in package
implements
OrderItemAttributeRepositoryFactoryInterface
Class OrderItemAttributeRepositoryFactory
Tags
Interfaces, Classes and Traits
- OrderItemAttributeRepositoryFactoryInterface
- Interface OrderItemAttributeRepositoryFactoryInterface
Table of Contents
- $db : Ci_Db_query_builder
- Instance of query builder which is passed to the reader, writer and deleter.
- $repositoryArray : array<string|int, mixed>
- Repository array.
- __construct() : mixed
- OrderItemAttributeRepositoryFactory constructor.
- createRepositoryArray() : array<string|int, OrderItemAttributeRepository>
- Creates an array which contain all repository of type OrderItemAttributeRepositoryInterface.
- createRepositoryByAttributeClass() : OrderItemAttributeRepository
- Creates an order item attribute repository by the given class name.
- createRepositoryByAttributeObject() : OrderItemAttributeRepository
- Creates an order item attribute repository by the given object type.
- _setRepositoryArrayAttributeIfNull() : mixed
- Creates an OrderItemAttributeRepository object and assigns it to the key 'attribute' of the $repositoryArray array, when its current value is null.
- _setRepositoryArrayPropertyIfNull() : mixed
- Creates an OrderItemPropertyRepository object and assigns it to the key 'property' of the $repositoryArray array, when its current value is null.
Properties
$db
Instance of query builder which is passed to the reader, writer and deleter.
protected
Ci_Db_query_builder
$db
$repositoryArray
Repository array.
protected
array<string|int, mixed>
$repositoryArray
= ['attribute' =>
ull, 'property' =>
ull]
Default: ['attribute' => null, 'property' => null]
Methods
__construct()
OrderItemAttributeRepositoryFactory constructor.
public
__construct(CI_DB_query_builder $dbQueryBuilder) : mixed
Parameters
- $dbQueryBuilder : CI_DB_query_builder
-
Query builder.
Return values
mixed —createRepositoryArray()
Creates an array which contain all repository of type OrderItemAttributeRepositoryInterface.
public
createRepositoryArray() : array<string|int, OrderItemAttributeRepository>
Return values
array<string|int, OrderItemAttributeRepository> —createRepositoryByAttributeClass()
Creates an order item attribute repository by the given class name.
public
createRepositoryByAttributeClass(string $className) : OrderItemAttributeRepository
Parameters
- $className : string
-
Name of the attribute class.
Tags
Return values
OrderItemAttributeRepository —Order item attribute repository instance.
createRepositoryByAttributeObject()
Creates an order item attribute repository by the given object type.
public
createRepositoryByAttributeObject(OrderItemAttributeInterface $itemAttribute) : OrderItemAttributeRepository
Parameters
- $itemAttribute : OrderItemAttributeInterface
-
Order item attribute.
Tags
Return values
OrderItemAttributeRepository —Order item attribute repository instance.
_setRepositoryArrayAttributeIfNull()
Creates an OrderItemAttributeRepository object and assigns it to the key 'attribute' of the $repositoryArray array, when its current value is null.
protected
_setRepositoryArrayAttributeIfNull() : mixed
Return values
mixed —_setRepositoryArrayPropertyIfNull()
Creates an OrderItemPropertyRepository object and assigns it to the key 'property' of the $repositoryArray array, when its current value is null.
protected
_setRepositoryArrayPropertyIfNull() : mixed