| 1 | <?php |
||
| 12 | class ReconnectEventArgs extends EventArgs |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | private $function; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var int |
||
| 21 | */ |
||
| 22 | private $attempt; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var string |
||
| 26 | */ |
||
| 27 | private $query; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @var mixed|null |
||
| 31 | */ |
||
| 32 | private $args; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * ReconnectEventArgs constructor. |
||
| 36 | * |
||
| 37 | * @param string $function |
||
| 38 | * @param int $attempt |
||
| 39 | * @param string $query |
||
| 40 | * @param mixed $args |
||
| 41 | */ |
||
| 42 | 3 | public function __construct($function, $attempt, $query, $args = null) |
|
| 49 | |||
| 50 | /** |
||
| 51 | * @return string |
||
| 52 | */ |
||
| 53 | public function getFunction(): string |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @return int |
||
| 60 | */ |
||
| 61 | public function getAttempt(): int |
||
| 65 | |||
| 66 | /** |
||
| 67 | * @return string |
||
| 68 | */ |
||
| 69 | public function getQuery(): string |
||
| 73 | |||
| 74 | /** |
||
| 75 | * @return mixed|null |
||
| 76 | */ |
||
| 77 | public function getArgs() |
||
| 81 | } |
||
| 82 |