PaylineOperationsCommand
extends ContainerAwareCommand
in package
Class PaylineOperationsCommand
Handles both cash-out and funds transfer operations using the EzynessEscrowService methods and logs relevant data into a dynamic log file.
Table of Contents
Properties
- $escrowService : mixed
- $logger : mixed
- $mailerService : MailerService
Methods
- __construct() : mixed
- Constructor for injecting dependencies.
- configure() : mixed
- execute() : mixed
- sendEmailNotification() : mixed
- Sends an email notification to the recipients informing them about the distribution process.
Properties
$escrowService
private
mixed
$escrowService
$logger
private
mixed
$logger
$mailerService
private
MailerService
$mailerService
Methods
__construct()
Constructor for injecting dependencies.
public
__construct(EzynessEscrowService $escrowService, LoggerInterface $logger) : mixed
Parameters
- $escrowService : EzynessEscrowService
-
The escrow service instance.
- $logger : LoggerInterface
-
The logger instance.
configure()
protected
configure() : mixed
execute()
protected
execute(InputInterface $input, OutputInterface $output) : mixed
Parameters
- $input : InputInterface
- $output : OutputInterface
sendEmailNotification()
Sends an email notification to the recipients informing them about the distribution process.
private
sendEmailNotification(mixed $data, string $status) : mixed
Parameters
- $data : mixed
-
The account balance or error message depending on status.
- $status : string
-
The status of the operation: 'running', 'success', or 'failure'.