Elastica\Cluster\Health::getClusterName PHP Method

getClusterName() public method

Gets the name of the cluster.
public getClusterName ( ) : string
return string
    public function getClusterName()
    {
        return $this->_data['cluster_name'];
    }

Usage Example

Example #1
0
 /**
  * @group unit
  */
 public function testGetClusterName()
 {
     $this->assertEquals('test_cluster', $this->_health->getClusterName());
 }