17
17
*/
18
18
class HttpClientPoolItem implements HttpClient, HttpAsyncClient
19
19
{
20
- /** @var int Number of request this client is currently sending */
20
+ /**
21
+ * @var int Number of request this client is currently sending
22
+ */
21
23
private $ sendingRequestCount = 0 ;
22
24
23
- /** @var \DateTime|null Time when this client has been disabled or null if enable */
25
+ /**
26
+ * @var \DateTime|null Time when this client has been disabled or null if enable
27
+ */
24
28
private $ disabledAt ;
25
29
26
- /** @var int|null Number of seconds after this client is reenable, by default null: never reenable this client */
30
+ /**
31
+ * @var int|null Number of seconds after this client is reenable, by default null: never reenable this client
32
+ */
27
33
private $ reenableAfter ;
28
34
29
- /** @var FlexibleHttpClient A http client responding to async and sync request */
35
+ /**
36
+ * @var FlexibleHttpClient A http client responding to async and sync request
37
+ */
30
38
private $ client ;
31
39
32
40
/**
33
- * {@inheritdoc}
34
41
*
42
+ * @param HttpClient|HttpAsyncClient $client
35
43
* @param null|int $reenableAfter Number of seconds after this client is reenable
36
44
*/
37
45
public function __construct ($ client , $ reenableAfter = null )
@@ -91,9 +99,11 @@ public function sendAsyncRequest(RequestInterface $request)
91
99
*
92
100
* Will also reactivate this client if possible
93
101
*
102
+ * @internal
103
+ *
94
104
* @return bool
95
105
*/
96
- public function isDisabled ()
106
+ final public function isDisabled ()
97
107
{
98
108
$ disabledAt = $ this ->getDisabledAt ();
99
109
@@ -116,9 +126,11 @@ public function isDisabled()
116
126
/**
117
127
* Get current number of request that is send by the underlying http client.
118
128
*
129
+ * @internal
130
+ *
119
131
* @return int
120
132
*/
121
- public function getSendingRequestCount ()
133
+ final public function getSendingRequestCount ()
122
134
{
123
135
return $ this ->sendingRequestCount ;
124
136
}
0 commit comments