BConnect POS - Reference PHP

ProductStockSubscriber
in package

Attributes
#[AsDoctrineListener]
$event: \Doctrine\ORM\Events::postUpdate
#[AsDoctrineListener]
$event: \Doctrine\ORM\Events::postPersist

Table of Contents

Properties

$logger  : LoggerInterface
$mailerService  : MailerService
$smsService  : SmsService

Methods

__construct()  : mixed
postPersist()  : void
postUpdate()  : void
checkThresholds()  : void
sendAlerts()  : void

Properties

Methods

postPersist()

public postPersist(PostPersistEventArgs $args) : void
Parameters
$args : PostPersistEventArgs

postUpdate()

public postUpdate(PostUpdateEventArgs $args) : void
Parameters
$args : PostUpdateEventArgs

sendAlerts()

private sendAlerts(object $entity, string $type, EntityManagerInterface $em[, int|null $threshold = null ]) : void
Parameters
$entity : object
$type : string
$em : EntityManagerInterface
$threshold : int|null = null
On this page

Search results