NewProductStatService
in package
Table of Contents
Properties
- $container : ContainerInterface
- $entityManager : EntityManagerInterface
Methods
- __construct() : mixed
- NewProductStatService constructor.
- addNewProductStat() : NewProductStat
- addNewProductStatSql() : mixed
- getRepo() : NewProductStatRepository
- getResultNewProductGraphLinePiep() : array<string|int, mixed>
- remove() : mixed
- Delete NewProductStat
- removeStatProduct() : void
- save() : NewProductStat
Properties
$container
private
ContainerInterface
$container
$entityManager
private
EntityManagerInterface
$entityManager
Methods
__construct()
NewProductStatService constructor.
public
__construct(ContainerInterface $container, EntityManagerInterface $entityManager) : mixed
Parameters
- $container : ContainerInterface
- $entityManager : EntityManagerInterface
addNewProductStat()
public
addNewProductStat(Product $product, User $user, string $action) : NewProductStat
Parameters
Return values
NewProductStataddNewProductStatSql()
public
addNewProductStatSql(mixed $product, User $user, string $action) : mixed
Parameters
- $product : mixed
- $user : User
- $action : string
getRepo()
public
getRepo() : NewProductStatRepository
Return values
NewProductStatRepositorygetResultNewProductGraphLinePiep()
public
getResultNewProductGraphLinePiep(mixed $listAllUser, mixed $productStatPerUser) : array<string|int, mixed>
Parameters
- $listAllUser : mixed
- $productStatPerUser : mixed
Return values
array<string|int, mixed>remove()
Delete NewProductStat
public
remove(NewProductStat $NewProductStat) : mixed
Parameters
- $NewProductStat : NewProductStat
removeStatProduct()
public
removeStatProduct(mixed $idProduct) : void
Parameters
- $idProduct : mixed
save()
public
save(NewProductStat $newProductStat) : NewProductStat
Parameters
- $newProductStat : NewProductStat