Class ProductPriceReader
package |
Default |
---|
__construct(\CI_DB_query_builder $db)
\CI_DB_query_builder
_findNearestLower(array $numbers, float $search) : float|null
If the searched number is between two others, the lower value is returned.
array
Numbers to be searched
float
Number to be searched.
float|null
Nearest (or lower nearest) number.
fetchById(\IdType $productId) : array|null
fetchByQuantity(\IdType $productId, \IdType $customerGroupId, \DecimalType $quantity) : array|null
array|null
Raw data of product prices.
db : \CI_DB_query_builder
var |
---|
\CI_DB_query_builder