24
24
use Elasticsearch \Connections \ConnectionFactory ;
25
25
use Elasticsearch \Connections \ConnectionFactoryInterface ;
26
26
use Elasticsearch \Namespaces \NamespaceBuilderInterface ;
27
+ use Elasticsearch \ConnectionPool \ConnectionPoolInterface ;
27
28
use Elasticsearch \ConnectionPool \Selectors ;
29
+ use Elasticsearch \ConnectionPool \Selectors \SelectorInterface ;
30
+ use Elasticsearch \Serializers \SerializerInterface ;
28
31
use Elasticsearch \Serializers \SmartSerializer ;
29
32
use GuzzleHttp \Ring \Client \CurlHandler ;
30
33
use GuzzleHttp \Ring \Client \CurlMultiHandler ;
@@ -50,24 +53,24 @@ class ClientBuilder
50
53
/** @var NamespaceBuilderInterface[] */
51
54
private $ registeredNamespacesBuilders = [];
52
55
53
- /** @var ConnectionFactoryInterface */
56
+ /** @var ConnectionFactoryInterface */
54
57
private $ connectionFactory ;
55
58
56
59
private $ handler ;
57
60
58
- /** @var LoggerInterface */
61
+ /** @var LoggerInterface */
59
62
private $ logger ;
60
63
61
- /** @var LoggerInterface */
64
+ /** @var LoggerInterface */
62
65
private $ tracer ;
63
66
64
- /** @var string */
67
+ /** @var string|ConnectionPoolInterface */
65
68
private $ connectionPool = '\Elasticsearch\ConnectionPool\StaticNoPingConnectionPool ' ;
66
69
67
- /** @var string */
70
+ /** @var string|SerializerInterface */
68
71
private $ serializer = '\Elasticsearch\Serializers\SmartSerializer ' ;
69
72
70
- /** @var string */
73
+ /** @var string|SelectorInterface */
71
74
private $ selector = '\Elasticsearch\ConnectionPool\Selectors\RoundRobinSelector ' ;
72
75
73
76
/** @var array */
0 commit comments