Elastica\Cluster\Health\Index::getNumberOfShards PHP Method

getNumberOfShards() public method

Gets the number of nodes in the index.
public getNumberOfShards ( ) : integer
return integer
    public function getNumberOfShards()
    {
        return $this->_data['number_of_shards'];
    }

Usage Example

 public function testGetNumberOfShards()
 {
     $this->assertEquals(1, $this->_index->getNumberOfShards());
 }