AvailabilityLogServiceInterface
in
Interface AvailabilityServiceInterface
Table of Contents
Methods
- __construct() : mixed
- QueueServiceInterface constructor.
- afterSaleProductCreated() : mixed
- getRepo() : AvailabilityLogRepository
- logAvailabilityChange() : AvailabilityLog
- Logging availability
- save() : mixed
Methods
__construct()
QueueServiceInterface constructor.
public
__construct(ContainerInterface $container, EntityManagerInterface $entityManager, LogServiceInterface $logService) : mixed
Parameters
- $container : ContainerInterface
- $entityManager : EntityManagerInterface
- $logService : LogServiceInterface
afterSaleProductCreated()
public
afterSaleProductCreated(AfterSaleProductCreatedFromSaleEvent $event) : mixed
Parameters
- $event : AfterSaleProductCreatedFromSaleEvent
getRepo()
public
getRepo() : AvailabilityLogRepository
Return values
AvailabilityLogRepositorylogAvailabilityChange()
Logging availability
public
logAvailabilityChange(Product $product, mixed $oldAvailability, mixed $availability[, string $message = 'Mise à jour automatique de la date dispo' ][, null $user = null ]) : AvailabilityLog
Parameters
- $product : Product
- $oldAvailability : mixed
- $availability : mixed
- $message : string = 'Mise à jour automatique de la date dispo'
- $user : null = null
Return values
AvailabilityLogsave()
public
save(AvailabilityLog $queue) : mixed
Parameters
- $queue : AvailabilityLog