PriceHistoryService
in package
Table of Contents
Properties
- $container : ContainerInterface
- $entityManager : EntityManagerInterface
- $historyRepository : PriceHistoryRepository
Methods
- __construct() : mixed
- getAvailablePromo() : mixed
- getRepo() : mixed
- getWholesalePrice() : array<string|int, mixed>|string
- save() : ProductPriceHistory
Properties
$container
private
ContainerInterface
$container
$entityManager
private
EntityManagerInterface
$entityManager
$historyRepository
private
PriceHistoryRepository
$historyRepository
Methods
__construct()
public
__construct(PriceHistoryRepository $historyRepository, EntityManagerInterface $entityManager, ContainerInterface $container) : mixed
Parameters
- $historyRepository : PriceHistoryRepository
- $entityManager : EntityManagerInterface
- $container : ContainerInterface
getAvailablePromo()
public
getAvailablePromo(mixed $product, mixed $createdAt) : mixed
Parameters
- $product : mixed
- $createdAt : mixed
getRepo()
public
getRepo() : mixed
getWholesalePrice()
public
getWholesalePrice(mixed $createdAt[, Product|null $product = null ][, int|null $saleProductId = null ]) : array<string|int, mixed>|string
Parameters
- $createdAt : mixed
- $product : Product|null = null
- $saleProductId : int|null = null
Return values
array<string|int, mixed>|stringsave()
public
save(ProductPriceHistory $priceHistory[, bool $flush = true ]) : ProductPriceHistory
Parameters
- $priceHistory : ProductPriceHistory
- $flush : bool = true