FeaturedProductReadService
in package
implements
FeaturedProductReadServiceInterface
Interfaces, Classes and Traits
Table of Contents
- $repository : FeaturedProductRepositoryInterface
- __construct() : mixed
- FeaturedProductReadService constructor.
- getNewProducts() : FeaturedProductCollection
- get new products by given id.
- getOfferedProducts() : FeaturedProductCollection
- Get Offers by given product id.
- getProductsByCategoryId() : FeaturedProductCollection
- get products by category id.
- getTopProducts() : FeaturedProductCollection
- get top products by given product id.
- getUpcomingProducts() : FeaturedProductCollection
- get upcoming products by given id and date.
Properties
$repository
private
FeaturedProductRepositoryInterface
$repository
Methods
__construct()
FeaturedProductReadService constructor.
public
__construct(FeaturedProductRepositoryInterface $repository) : mixed
Parameters
- $repository : FeaturedProductRepositoryInterface
Return values
mixed —getNewProducts()
get new products by given id.
public
getNewProducts(FeaturedProductSettings $settings) : FeaturedProductCollection
Parameters
- $settings : FeaturedProductSettings
Return values
FeaturedProductCollection —getOfferedProducts()
Get Offers by given product id.
public
getOfferedProducts(FeaturedProductSettings $settings) : FeaturedProductCollection
Parameters
- $settings : FeaturedProductSettings
Return values
FeaturedProductCollection —getProductsByCategoryId()
get products by category id.
public
getProductsByCategoryId(FeaturedProductSettings $settings, IntType $categoryId) : FeaturedProductCollection
Parameters
- $settings : FeaturedProductSettings
- $categoryId : IntType
Return values
FeaturedProductCollection —getTopProducts()
get top products by given product id.
public
getTopProducts(FeaturedProductSettings $settings) : FeaturedProductCollection
Parameters
- $settings : FeaturedProductSettings
Return values
FeaturedProductCollection —getUpcomingProducts()
get upcoming products by given id and date.
public
getUpcomingProducts(FeaturedProductSettings $settings) : FeaturedProductCollection
Parameters
- $settings : FeaturedProductSettings