QuantityUnitStorage

Implements \QuantityUnitStorageInterface

Class QuantityUnitStorage

category

System

package

QuantityUnit

subpackage

Repositories

Methods

QuantityUnitStorage constructor.

__construct(\CI_DB_query_builder $queryBuilder, \LanguageProvider $languageProvider) 

Arguments

$queryBuilder

\CI_DB_query_builder

$languageProvider

\LanguageProvider

Deletes quantity unit entity data in database.

delete(\QuantityUnitInterface $quantityUnit) : \QuantityUnitStorageInterface

Arguments

$quantityUnit

\QuantityUnitInterface

Quantity unit to be delete.

Response

\QuantityUnitStorageInterface

Same instance for chained method calls.

Returns all quantity unit entities data as array.

getAll() : array

Response

array

Returns quantity unit entity data by the given id.

getById(\IdType $quantityUnitId) : array
Throws
\EntityNotFoundException

If no entity was found by provided id.

Arguments

$quantityUnitId

\IdType

Response

array

Saves quantity unit entity data in database.

save(\QuantityUnitInterface $quantityUnit) : \QuantityUnitStorageInterface

Arguments

$quantityUnit

\QuantityUnitInterface

Quantity unit to be saved.

Response

\QuantityUnitStorageInterface

Same instance for chained method calls.

Updates quantity unit entity data in database.

update(\QuantityUnitInterface $quantityUnit) : \QuantityUnitStorageInterface

Arguments

$quantityUnit

\QuantityUnitInterface

Quantity unit to be updated.

Response

\QuantityUnitStorageInterface

Same instance for chained method calls.

Properties

queryBuilder

queryBuilder : \CI_DB_query_builder
var

Type(s)

\CI_DB_query_builder

languageProvider

languageProvider : \LanguageProvider
var

Type(s)

\LanguageProvider