Logidav Docs

ProductQtyLogService extends TransactionalService
in package

Class ProductQtyLog `

Table of Contents

Properties

$container  : ContainerInterface
$em  : EntityManager
$productQtyLogRepository  : ProductQtyLogRepository

Methods

addRepository()  : void
Add a repository to this service
addService()  : void
Add a service to this service
find()  : ProductQtyLog|object|null
findAll()  : array<string|int, ProductQtyLog>|Collection
findBy()  : mixed
findByProduct()  : mixed
findOneBy()  : ProductQtyLog|object|null
getDispoUpdated()  : array<string|int, mixed>|int|string
getEntityManager()  : EntityManager
Getter of the Entity Manager
getRepo()  : ProductQtyLogRepository
log()  : ProductQtyLog
Logging
productChangeLog()  : mixed
save()  : ProductQtyLog
Save a ProductQtyLog
search()  : Paginator
setEntityManager()  : mixed
Setter of the Entity Manager

Properties

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

findBy()

public findBy(mixed $params[, array<string|int, mixed> $sort = [] ]) : mixed
Parameters
$params : mixed
$sort : array<string|int, mixed> = []

findByProduct()

public findByProduct(mixed $id[, array<string|int, mixed> $sort = [] ]) : mixed
Parameters
$id : mixed
$sort : array<string|int, mixed> = []

getDispoUpdated()

public getDispoUpdated(mixed $idprod) : array<string|int, mixed>|int|string
Parameters
$idprod : mixed
Return values
array<string|int, mixed>|int|string

getEntityManager()

Getter of the Entity Manager

public getEntityManager() : EntityManager
Return values
EntityManager

log()

Logging

public log(mixed $product, mixed $newQty, mixed $oldQty, mixed $message[, null $sale = null ][, null $action = null ][, null $user = null ]) : ProductQtyLog
Parameters
$product : mixed
$newQty : mixed
$oldQty : mixed
$message : mixed
$sale : null = null
$action : null = null
$user : null = null
Tags
noinspection

MissingParameterTypeDeclarationInspection

Return values
ProductQtyLog

productChangeLog()

public productChangeLog(mixed $saleProduct, mixed $action[, mixed $newSpQty = 0 ][, mixed $product = null ][, mixed $user = null ]) : mixed
Parameters
$saleProduct : mixed
$action : mixed
$newSpQty : mixed = 0
$product : mixed = null
$user : mixed = null
public search(mixed $data[, int $page = 0 ][, null $max = NULL ][, bool $getResult = true ]) : Paginator
Parameters
$data : mixed
$page : int = 0
$max : null = NULL
$getResult : bool = true
Return values
Paginator

setEntityManager()

Setter of the Entity Manager

public setEntityManager(EntityManager $em) : mixed
Parameters
$em : EntityManager

the Entity Manager


        
On this page

Search results