Skip to content

Commit cda834d

Browse files
committed
Docs and property access modifiers
1 parent e04ab35 commit cda834d

File tree

2 files changed

+52
-6
lines changed

2 files changed

+52
-6
lines changed

src/VerifierServer/PersistentState.php

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,18 @@
2121
* @package VerifierServer
2222
*/
2323
class PersistentState {
24-
private PDO $pdo;
24+
/**
25+
* The PDO object for database operations.
26+
*
27+
* @var PDO Database connection.
28+
*/
29+
protected PDO $pdo;
30+
31+
/**
32+
* The list of verification items.
33+
*
34+
* @var array Verification list.
35+
*/
2536
private array $verifyList;
2637

2738
public function __construct(

src/VerifierServer/Server.php

Lines changed: 40 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,47 @@
3131
* @package VerifierServer
3232
*/
3333
class Server {
34-
private LoopInterface $loop;
35-
private $server;
36-
private SocketServer $socket;
37-
private bool $initialized = false;
38-
private bool $running = false;
34+
/**
35+
* The ReactPHP event loop.
36+
*
37+
* @var LoopInterface Event loop.
38+
* */
39+
protected LoopInterface $loop;
40+
41+
/**
42+
* The server instance.
43+
*
44+
* @var HttpServer|resource|null Server.
45+
* */
46+
protected $server;
3947

48+
/**
49+
* The socket server instance.
50+
*
51+
* @var SocketServer Socket server.
52+
*/
53+
protected SocketServer $socket;
54+
55+
/**
56+
* Whether the server has been initialized.
57+
*
58+
* @var bool Initialized.
59+
*
60+
*/
61+
protected bool $initialized = false;
62+
63+
/**
64+
* Whether the server is running.
65+
*
66+
* @var bool Running.
67+
*/
68+
protected bool $running = false;
69+
70+
/**
71+
* The server's endpoints.
72+
*
73+
* @var EndpointInterface[] Endpoints.
74+
* */
4075
private array $endpoints = [];
4176

4277
public function __construct(

0 commit comments

Comments
 (0)