Elastica\IndexTemplate::getName PHP Method

getName() public method

Returns the index template name.
public getName ( ) : string
return string Index name
    public function getName()
    {
        return $this->_name;
    }

Usage Example

 /**
  * @group unit
  */
 public function testInstantiate()
 {
     $name = 'index_template1';
     $client = $this->_getClient();
     $indexTemplate = new IndexTemplate($client, $name);
     $indexTemplate->getName();
     $this->assertSame($client, $indexTemplate->getClient());
     $this->assertEquals($name, $indexTemplate->getName());
 }