Skip to content

Commit

Permalink
Add endpoint index and type getters (#557)
Browse files Browse the repository at this point in the history
  • Loading branch information
ewgRa authored and polyfractal committed Mar 30, 2017
1 parent 608bfe8 commit 0d9cdfa
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/Elasticsearch/Endpoints/AbstractEndpoint.php
Expand Up @@ -95,6 +95,14 @@ public function getOptions()
return $this->options;
}

/**
* @return string|null
*/
public function getIndex()
{
return $this->index;
}

/**
* @param string $index
*
Expand All @@ -116,6 +124,14 @@ public function setIndex($index)
return $this;
}

/**
* @return string|null
*/
public function getType()
{
return $this->type;
}

/**
* @param string $type
*
Expand Down

0 comments on commit 0d9cdfa

Please sign in to comment.