File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
src/Elasticsearch/Connections Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,11 @@ class Connection implements ConnectionInterface
58
58
* @var string|null
59
59
*/
60
60
protected $ path ;
61
+
62
+ /**
63
+ * @var int
64
+ */
65
+ protected $ port ;
61
66
62
67
/**
63
68
* @var LoggerInterface
@@ -133,8 +138,11 @@ public function __construct(
133
138
if (isset ($ hostDetails ['path ' ]) === true ) {
134
139
$ path = $ hostDetails ['path ' ];
135
140
}
141
+ $ port = $ hostDetails ['port ' ];
142
+
136
143
$ this ->host = $ host ;
137
144
$ this ->path = $ path ;
145
+ $ this ->port = $ port ;
138
146
$ this ->log = $ log ;
139
147
$ this ->trace = $ trace ;
140
148
$ this ->connectionParams = $ connectionParams ;
@@ -511,6 +519,9 @@ public function getHost()
511
519
{
512
520
return $ this ->host ;
513
521
}
522
+
523
+ /**
524
+
514
525
515
526
/**
516
527
* @return null|string
@@ -530,6 +541,14 @@ public function getPath()
530
541
{
531
542
return $ this ->path ;
532
543
}
544
+
545
+ /**
546
+ * @return int
547
+ */
548
+ public function getPort ()
549
+ {
550
+ return $ this ->port ;
551
+ }
533
552
534
553
/**
535
554
* @param array $request
You can’t perform that action at this time.
0 commit comments