ProductOrphelinService
in package
Table of Contents
Properties
- $container : ContainerInterface
- $entityManager : EntityManagerInterface
- $header : mixed
Methods
- __construct() : mixed
- ProductOrphelinService constructor.
- add() : ProductOrphelin
- export() : StreamedResponse
- Exporting sales
- getRepo() : ProductOrphelinRepository
- remove() : mixed
- save() : ProductOrphelin
- Save a ProductOrphelin
- exportCsv() : mixed
- Exporting as csv
- exportXls() : mixed
- Exporting as Xls
Properties
$container
private
ContainerInterface
$container
$entityManager
private
EntityManagerInterface
$entityManager
$header
private
mixed
$header
= ['sku' => 'Sku', 'emplacement' => 'Emplacement', 'qty' => 'Qté']
Methods
__construct()
ProductOrphelinService constructor.
public
__construct(ContainerInterface $container, EntityManagerInterface $entityManager) : mixed
Parameters
- $container : ContainerInterface
- $entityManager : EntityManagerInterface
add()
public
add(Product $product, mixed $qty, Emplacement $emplacement) : ProductOrphelin
Parameters
- $product : Product
- $qty : mixed
- $emplacement : Emplacement
Return values
ProductOrphelinexport()
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() : ProductOrphelinRepository
Return values
ProductOrphelinRepositoryremove()
public
remove(ProductOrphelin $productOrphelin) : mixed
Parameters
- $productOrphelin : ProductOrphelin
save()
Save a ProductOrphelin
public
save(ProductOrphelin $productOrphelin) : ProductOrphelin
Parameters
- $productOrphelin : ProductOrphelin
Return values
ProductOrphelinexportCsv()
Exporting as csv
private
exportCsv(mixed $data, mixed $columns, mixed $title) : mixed
Parameters
- $data : mixed
- $columns : mixed
- $title : mixed
exportXls()
Exporting as Xls
private
exportXls(mixed $data, mixed $columns, mixed $title) : mixed
Parameters
- $data : mixed
- $columns : mixed
- $title : mixed