ProductSameSkuService
extends TransactionalService
in package
Class ProductSameSkuService
Table of Contents
Properties
- $container : mixed
- $em : EntityManager
- $productSameSkuRepository : mixed
- $header : mixed
Methods
- addRepository() : void
- Add a repository to this service
- addService() : void
- Add a service to this service
- export() : StreamedResponse
- Exporting sales
- getEntityManager() : EntityManager
- Getter of the Entity Manager
- getRepo() : mixed
- Get product photo repo
- remove() : mixed
- remove ProductSameSku
- save() : ProductSameSku
- Save a ProductSameSku
- setEntityManager() : mixed
- Setter of the Entity Manager
- exportCsv() : mixed
- Exporting as csv
- exportXls() : mixed
- Exporting as Xls
Properties
$container
protected
mixed
$container
$em
protected
EntityManager
$em
The Entity Manager
$productSameSkuRepository
protected
mixed
$productSameSkuRepository
$header
private
mixed
$header
= ['productsId' => 'productsId', 'sku' => 'Sku', 'name' => 'Nom']
Methods
addRepository()
Add a repository to this service
public
addRepository(int $key, string $class) : void
Parameters
- $key : int
-
Key
- $class : string
-
Class
addService()
Add a service to this service
public
addService(int $key, mixed $service) : void
Parameters
- $key : int
-
Key
- $service : mixed
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
StreamedResponsegetEntityManager()
Getter of the Entity Manager
public
getEntityManager() : EntityManager
Return values
EntityManagergetRepo()
Get product photo repo
public
getRepo() : mixed
remove()
remove ProductSameSku
public
remove(ProductSameSku $productSameSku) : mixed
Parameters
- $productSameSku : ProductSameSku
save()
Save a ProductSameSku
public
save(ProductSameSku $productSameSku) : ProductSameSku
Parameters
- $productSameSku : ProductSameSku
Tags
Return values
ProductSameSkusetEntityManager()
Setter of the Entity Manager
public
setEntityManager(EntityManager $em) : mixed
Parameters
- $em : EntityManager
-
the Entity Manager
exportCsv()
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