lib/Elastica/Cluster.php
public function getNodes()
    {
        $nodes = [];
        $data = $this->getState();

        foreach ($data['nodes'] as $id => $name) {
            $nodes[] = new Node($id, $this->getClient());
        }

        return $nodes;
    }
public function getNodes()
    {
        $nodes = [];
        $data = $this->getState();

        foreach ($data['nodes'] as $id => $name) {
            $nodes[] = new Node($id, $this->getClient());
        }

        return $nodes;
    }
public function getNodes ( ) { $ nodes = [ ] ; $ data = $ this -> getState ( ) ; foreach ( $ data [ 'nodes' ] as $ id => $ name ) { $ nodes [ ] = new Node ( $ id , $ this -> getClient ( ) ) ; } return $ nodes ; }
Returns all nodes of the cluster.

@return \Elastica\Node[]
Returns all nodes of the cluster .