public getInfo ( ) : |
||
return | Node info object |
public function getInfo()
{
if (!$this->_info) {
$this->_info = new Info($this);
}
return $this->_info;
}
/** * @group functional */ public function testGetInfo() { $client = $this->_getClient(); $names = $client->getCluster()->getNodeNames(); $name = reset($names); $node = new Node($name, $client); $info = $node->getInfo(); $this->assertInstanceOf('Elastica\\Node\\Info', $info); }