1 | <?php declare(strict_types = 1); |
||
7 | class CircuitBreakerEvent extends Event |
||
8 | { |
||
9 | /** |
||
10 | * @var string |
||
11 | */ |
||
12 | private $key; |
||
13 | |||
14 | /** |
||
15 | * @var bool |
||
16 | */ |
||
17 | private $status; |
||
18 | |||
19 | /** |
||
20 | * @param string $key |
||
21 | * @param bool $status |
||
22 | */ |
||
23 | 4 | public function __construct(string $key, bool $status) |
|
28 | |||
29 | /** |
||
30 | * @return string |
||
31 | */ |
||
32 | 3 | public function getKey(): string |
|
36 | |||
37 | /** |
||
38 | * @return bool |
||
39 | */ |
||
40 | 3 | public function getStatus(): bool |
|
44 | } |
||
45 |