for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Adgoal\DBALFaultTolerance\Events\Args;
use Doctrine\Common\EventArgs;
/**
* Class ReconnectEventArgs.
*/
class ReconnectEventArgs extends EventArgs
{
* @var string
private $function;
* @var int
private $attempt;
private $query;
* @var mixed|null
private $args;
* ReconnectEventArgs constructor.
*
* @param string $function
* @param int $attempt
* @param string $query
* @param mixed $args
public function __construct($function, $attempt, $query, $args = null)
$this->function = $function;
$this->attempt = $attempt;
$this->query = $query;
$this->args = $args;
}
* @return string
public function getFunction(): string
return $this->function;
* @return int
public function getAttempt(): int
return $this->attempt;
public function getQuery(): string
return $this->query;
* @return mixed|null
public function getArgs()
return $this->args;