ProductQtyStatService
in package
Table of Contents
Properties
- $container : ContainerInterface
- $entityManager : EntityManagerInterface
- $header : mixed
Methods
- __construct() : mixed
- NewProductCommentService constructor.
- export() : StreamedResponse
- Exporting sales
- getRepo() : ProductQtyStatRepository
- save() : ProductQtyStat
- Save a ProductQtyStat
- exportCsv() : StreamedResponse
- exportXls() : mixed
Properties
$container
private
ContainerInterface
$container
$entityManager
private
EntityManagerInterface
$entityManager
$header
private
mixed
$header
= ['name' => 'Nom', 'sku' => 'Sku', 'qty' => 'Qté', 'available' => 'Dispo', 'saleQtyNoStock' => 'Commandes non livre']
Methods
__construct()
NewProductCommentService constructor.
public
__construct(ContainerInterface $container, EntityManagerInterface $entityManager) : mixed
Parameters
- $container : ContainerInterface
- $entityManager : EntityManagerInterface
export()
Exporting sales
public
export(mixed $title, mixed $data, mixed $columns, mixed $format[, array<string|int, mixed> $customHeader = [] ]) : StreamedResponse
Parameters
- $title : mixed
- $data : mixed
- $columns : mixed
- $format : mixed
- $customHeader : array<string|int, mixed> = []
Return values
StreamedResponsegetRepo()
public
getRepo() : ProductQtyStatRepository
Return values
ProductQtyStatRepositorysave()
Save a ProductQtyStat
public
save(ProductQtyStat $productQtyStat) : ProductQtyStat
Parameters
- $productQtyStat : ProductQtyStat
Return values
ProductQtyStatexportCsv()
private
exportCsv(mixed $data, mixed $columns, mixed $title) : StreamedResponse
Parameters
- $data : mixed
- $columns : mixed
- $title : mixed
Return values
StreamedResponseexportXls()
private
exportXls(mixed $data, mixed $columns, mixed $title) : mixed
Parameters
- $data : mixed
- $columns : mixed
- $title : mixed