ProductImageContainerRepository

Implements \ProductImageContainerRepositoryInterface

Class ProductImageContainerRepository

category

System

package

Product

subpackage

Repositories

Methods

ProductImageContainerRepository constructor.

__construct(\CI_DB_query_builder $db, \LanguageProviderInterface $languageProvider) 

Arguments

$db

\CI_DB_query_builder

Database connection.

$languageProvider

\LanguageProviderInterface

Deletes a product image container based on the product ID given.

deleteByProductId(\IdType $productId) : \ProductImageContainerRepository

Arguments

$productId

\IdType

Product ID.

Response

\ProductImageContainerRepository

Same instance for method chaining.

Returns a product image container based on the product ID given.

getByProductId(\IdType $productId) : \ProductImageContainerInterface
Throws
\InvalidArgumentException

On invalid arguments.

Arguments

$productId

\IdType

Product ID.

Response

\ProductImageContainerInterface

Product image container.

Stores the product image container.

store(\IdType $productId, \ProductImageContainerInterface $imageContainer) : \ProductImageContainerRepository
Throws
\InvalidArgumentException

On invalid arguments.

Arguments

$productId

\IdType

Product ID.

$imageContainer

\ProductImageContainerInterface

Product image container.

Response

\ProductImageContainerRepository

Same instance for method chaining.

Properties