File tree Expand file tree Collapse file tree 2 files changed +14
-8
lines changed
app/code/Magento/Elasticsearch
Elasticsearch5/Model/Client Expand file tree Collapse file tree 2 files changed +14
-8
lines changed Original file line number Diff line number Diff line change 14
14
class Elasticsearch implements ClientInterface
15
15
{
16
16
/**
17
- * Elasticsearch Client instance
17
+ * Elasticsearch Client instances
18
18
*
19
19
* @var \Elasticsearch\Client[]
20
20
*/
21
- protected $ client ;
21
+ private $ client ;
22
22
23
23
/**
24
24
* @var array
25
25
*/
26
- protected $ clientOptions ;
26
+ private $ clientOptions ;
27
27
28
28
/**
29
29
* @var bool
30
30
*/
31
- protected $ pingResult ;
31
+ private $ pingResult ;
32
32
33
33
/**
34
34
* @var string
Original file line number Diff line number Diff line change 15
15
class Elasticsearch implements ClientInterface
16
16
{
17
17
/**
18
- * Elasticsearch Client instance
18
+ * Elasticsearch Client instances
19
19
*
20
20
* @var \Elasticsearch\Client[]
21
21
*/
22
- protected $ client ;
22
+ private $ client ;
23
23
24
24
/**
25
25
* @var array
26
26
*/
27
- protected $ clientOptions ;
27
+ private $ clientOptions ;
28
28
29
29
/**
30
30
* @var bool
31
31
*/
32
- protected $ pingResult ;
32
+ private $ pingResult ;
33
33
34
34
/**
35
35
* Initialize Elasticsearch Client
@@ -57,6 +57,11 @@ public function __construct(
57
57
$ this ->clientOptions = $ options ;
58
58
}
59
59
60
+ /**
61
+ * Get Elasticsearch Client
62
+ *
63
+ * @return \Elasticsearch\Client
64
+ */
60
65
private function getClient ()
61
66
{
62
67
$ pid = getmypid ();
@@ -66,6 +71,7 @@ private function getClient()
66
71
}
67
72
return $ this ->client [$ pid ];
68
73
}
74
+
69
75
/**
70
76
* Ping the Elasticsearch client
71
77
*
You can’t perform that action at this time.
0 commit comments