public getNodes ( ) : |
||
Результат |
public function getNodes()
{
$nodes = [];
$data = $this->getState();
foreach ($data['nodes'] as $id => $name) {
$nodes[] = new Node($id, $this->getClient());
}
return $nodes;
}