FeaturedProductRepository

Implements \FeaturedProductRepositoryInterface

Class FeaturedProductRepository

package

Default

Methods

FeaturedProductRepository constructor.

__construct(\FeaturedProductReaderInterface $reader) 

get new products by given id.

getNewProducts(\FeaturedProductSettings $settings) : \FeaturedProductCollection

Get Offers by given product id.

getOfferedProducts(\FeaturedProductSettings $settings) : \FeaturedProductCollection

get products by category id.

getProductsByCategoryId(\FeaturedProductSettings $settings, \IntType $categoryId) : \FeaturedProductCollection

Arguments

$categoryId

\IntType

Response

\FeaturedProductCollection

get top products by given product id.

getTopProducts(\FeaturedProductSettings $settings) : \FeaturedProductCollection

get upcoming products by given id and date.

getUpcomingProducts(\FeaturedProductSettings $settings) : \FeaturedProductCollection

Properties

reader

reader : \FeaturedProductReaderInterface