SaleCancellationFundSubscriber
in package
Attributes
- #[AsDoctrineListener]
- $event: \Doctrine\ORM\Events::onFlush
Table of Contents
Properties
- $security : Security
Methods
- __construct() : mixed
- onFlush() : void
- buildCancellationMotif() : string
- Keep this label aligned with SaleController::cancelSale().
- cancellationFundExists() : bool
Properties
$security read-only
private
Security
$security
Methods
__construct()
public
__construct(Security $security) : mixed
Parameters
- $security : Security
onFlush()
public
onFlush(OnFlushEventArgs $args) : void
Parameters
- $args : OnFlushEventArgs
buildCancellationMotif()
Keep this label aligned with SaleController::cancelSale().
private
buildCancellationMotif(Sale $sale) : string
Parameters
- $sale : Sale
Return values
stringcancellationFundExists()
private
cancellationFundExists(Sale $sale, string $motif, array<string|int, object> $scheduledInsertions) : bool
Parameters
- $sale : Sale
- $motif : string
- $scheduledInsertions : array<string|int, object>