1717 */
1818class HttpClientPoolItem implements HttpClient, HttpAsyncClient
1919{
20- /** @var int Number of request this client is currently sending */
20+ /**
21+ * @var int Number of request this client is currently sending
22+ */
2123 private $ sendingRequestCount = 0 ;
2224
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+ */
2428 private $ disabledAt ;
2529
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+ */
2733 private $ reenableAfter ;
2834
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+ */
3038 private $ client ;
3139
3240 /**
33- * {@inheritdoc}
3441 *
42+ * @param HttpClient|HttpAsyncClient $client
3543 * @param null|int $reenableAfter Number of seconds after this client is reenable
3644 */
3745 public function __construct ($ client , $ reenableAfter = null )
@@ -91,9 +99,11 @@ public function sendAsyncRequest(RequestInterface $request)
9199 *
92100 * Will also reactivate this client if possible
93101 *
102+ * @internal
103+ *
94104 * @return bool
95105 */
96- public function isDisabled ()
106+ final public function isDisabled ()
97107 {
98108 $ disabledAt = $ this ->getDisabledAt ();
99109
@@ -116,9 +126,11 @@ public function isDisabled()
116126 /**
117127 * Get current number of request that is send by the underlying http client.
118128 *
129+ * @internal
130+ *
119131 * @return int
120132 */
121- public function getSendingRequestCount ()
133+ final public function getSendingRequestCount ()
122134 {
123135 return $ this ->sendingRequestCount ;
124136 }
0 commit comments