Skip to content

Commit 0d9cdfa

Browse files
ewgRapolyfractal
authored andcommitted
Add endpoint index and type getters (#557)
1 parent 608bfe8 commit 0d9cdfa

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/Elasticsearch/Endpoints/AbstractEndpoint.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,14 @@ public function getOptions()
9595
return $this->options;
9696
}
9797

98+
/**
99+
* @return string|null
100+
*/
101+
public function getIndex()
102+
{
103+
return $this->index;
104+
}
105+
98106
/**
99107
* @param string $index
100108
*
@@ -116,6 +124,14 @@ public function setIndex($index)
116124
return $this;
117125
}
118126

127+
/**
128+
* @return string|null
129+
*/
130+
public function getType()
131+
{
132+
return $this->type;
133+
}
134+
119135
/**
120136
* @param string $type
121137
*

0 commit comments

Comments
 (0)