FeaturedProductReadService

Implements \FeaturedProductReadServiceInterface

package

Default

Methods

FeaturedProductReadService constructor.

__construct(\FeaturedProductRepositoryInterface $repository) 

Arguments

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

repository

repository : \FeaturedProductRepositoryInterface