OrderItemAttributeRepositoryFactory

Implements \OrderItemAttributeRepositoryFactoryInterface

Class OrderItemAttributeRepositoryFactory

category

System

package

Order

subpackage

Factories

Methods

OrderItemAttributeRepositoryFactory constructor.

__construct(\CI_DB_query_builder $dbQueryBuilder) 

Arguments

$dbQueryBuilder

\CI_DB_query_builder

Query builder.

Creates an OrderItemAttributeRepository object and assigns it to the key 'attribute' of the $repositoryArray array, when its current value is null.

_setRepositoryArrayAttributeIfNull() 

Creates an OrderItemPropertyRepository object and assigns it to the key 'property' of the $repositoryArray array, when its current value is null.

_setRepositoryArrayPropertyIfNull() 

Creates an array which contain all repository of type OrderItemAttributeRepositoryInterface.

createRepositoryArray() : array<mixed,\OrderItemAttributeRepository>

Response

array<mixed,\OrderItemAttributeRepository>

Creates an order item attribute repository by the given class name.

createRepositoryByAttributeClass(string $className) : \OrderItemAttributeRepository
Throws
\InvalidArgumentException

On invalid argument.

Arguments

$className

string

Name of the attribute class.

Response

\OrderItemAttributeRepository

Order item attribute repository instance.

Creates an order item attribute repository by the given object type.

createRepositoryByAttributeObject(\OrderItemAttributeInterface $itemAttribute) : \OrderItemAttributeRepository
Throws
\InvalidArgumentException

On invalid argument.

Arguments

$itemAttribute

\OrderItemAttributeInterface

Order item attribute.

Response

\OrderItemAttributeRepository

Order item attribute repository instance.

Properties

Repository array.

repositoryArray : array

Default: ['attribute' => null, 'property' => null]

var

Type(s)

array

Instance of query builder which is passed to the reader, writer and deleter.

db : \Ci_Db_query_builder
var

Type(s)

\Ci_Db_query_builder