1 | <?php |
||
7 | final class PoolInfo |
||
8 | { |
||
9 | public const STATUS_REQUEST_ERROR = 'REQUEST_ERROR'; |
||
10 | public const STATUS_REQUESTED = 'REQUESTED'; |
||
11 | public const STATUS_IN_PROCESS = 'IN_PROCESS'; |
||
12 | public const STATUS_READY = 'READY'; |
||
13 | public const STATUS_CLOSED = 'CLOSED'; |
||
14 | public const STATUS_DELETED = 'DELETED'; |
||
15 | public const STATUS_REJECTED = 'REJECTED'; |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | private $status; |
||
21 | /** |
||
22 | * @var int |
||
23 | */ |
||
24 | private $quantity; |
||
25 | /** |
||
26 | * @var int |
||
27 | */ |
||
28 | private $leftInRegistrar; |
||
29 | /** |
||
30 | * @var string |
||
31 | */ |
||
32 | private $registrarId; |
||
33 | /** |
||
34 | * @var bool |
||
35 | */ |
||
36 | private $isRegistrarReady; |
||
37 | /** |
||
38 | * @var int |
||
39 | */ |
||
40 | private $registrarErrorCount; |
||
41 | /** |
||
42 | * @var int |
||
43 | */ |
||
44 | private $lastRegistrarErrorTimestamp; |
||
45 | |||
46 | public function __construct( |
||
63 | |||
64 | public function getStatus(): string |
||
68 | |||
69 | public function getQuantity(): int |
||
73 | |||
74 | public function getLeftInRegistrar(): int |
||
78 | |||
79 | public function getRegistrarId(): string |
||
83 | |||
84 | public function isRegistrarReady(): bool |
||
88 | |||
89 | public function getRegistrarErrorCount(): int |
||
93 | |||
94 | public function getLastRegistrarErrorTimestamp(): int |
||
98 | } |
||
99 |