InternalStockHistoryService
extends TransactionalService
in package
Class InternalStockHistoryService
Table of Contents
Properties
- $em : EntityManager
- $container : ContainerInterface
- $entityManager : EntityManagerInterface
- $internalStockHistoryRepository : InternalStockHistoryRepository
Methods
- __construct() : mixed
- InternalStockHistoryService constructor.
- addRepository() : void
- Add a repository to this service
- addService() : void
- Add a service to this service
- getEntityManager() : EntityManager
- Getter of the Entity Manager
- getRepo() : InternalStockHistoryRepository
- save() : InternalStockHistory
- Save a SaleProduct
- setEntityManager() : mixed
- Setter of the Entity Manager
Properties
$em
protected
EntityManager
$em
The Entity Manager
$container
private
ContainerInterface
$container
$entityManager
private
EntityManagerInterface
$entityManager
$internalStockHistoryRepository
private
InternalStockHistoryRepository
$internalStockHistoryRepository
Methods
__construct()
InternalStockHistoryService constructor.
public
__construct(ContainerInterface $container, EntityManagerInterface $entityManager, InternalStockHistoryRepository $internalStockHistoryRepository) : mixed
Parameters
- $container : ContainerInterface
- $entityManager : EntityManagerInterface
- $internalStockHistoryRepository : InternalStockHistoryRepository
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
getEntityManager()
Getter of the Entity Manager
public
getEntityManager() : EntityManager
Return values
EntityManagergetRepo()
public
getRepo() : InternalStockHistoryRepository
Return values
InternalStockHistoryRepositorysave()
Save a SaleProduct
public
save(InternalStockHistory $internalStockHistory) : InternalStockHistory
Parameters
- $internalStockHistory : InternalStockHistory
Tags
Return values
InternalStockHistorysetEntityManager()
Setter of the Entity Manager
public
setEntityManager(EntityManager $em) : mixed
Parameters
- $em : EntityManager
-
the Entity Manager