2424use Elasticsearch \Connections \ConnectionFactory ;
2525use Elasticsearch \Connections \ConnectionFactoryInterface ;
2626use Elasticsearch \Namespaces \NamespaceBuilderInterface ;
27+ use Elasticsearch \ConnectionPool \ConnectionPoolInterface ;
2728use Elasticsearch \ConnectionPool \Selectors ;
29+ use Elasticsearch \ConnectionPool \Selectors \SelectorInterface ;
30+ use Elasticsearch \Serializers \SerializerInterface ;
2831use Elasticsearch \Serializers \SmartSerializer ;
2932use GuzzleHttp \Ring \Client \CurlHandler ;
3033use GuzzleHttp \Ring \Client \CurlMultiHandler ;
@@ -50,24 +53,24 @@ class ClientBuilder
5053 /** @var NamespaceBuilderInterface[] */
5154 private $ registeredNamespacesBuilders = [];
5255
53- /** @var ConnectionFactoryInterface */
56+ /** @var ConnectionFactoryInterface */
5457 private $ connectionFactory ;
5558
5659 private $ handler ;
5760
58- /** @var LoggerInterface */
61+ /** @var LoggerInterface */
5962 private $ logger ;
6063
61- /** @var LoggerInterface */
64+ /** @var LoggerInterface */
6265 private $ tracer ;
6366
64- /** @var string */
67+ /** @var string|ConnectionPoolInterface */
6568 private $ connectionPool = '\Elasticsearch\ConnectionPool\StaticNoPingConnectionPool ' ;
6669
67- /** @var string */
70+ /** @var string|SerializerInterface */
6871 private $ serializer = '\Elasticsearch\Serializers\SmartSerializer ' ;
6972
70- /** @var string */
73+ /** @var string|SelectorInterface */
7174 private $ selector = '\Elasticsearch\ConnectionPool\Selectors\RoundRobinSelector ' ;
7275
7376 /** @var array */
0 commit comments