lib/Elastica/Cluster/Health/Index.php
public function getShards(): array
    {
        $shards = [];
        foreach ($this->_data['shards'] as $shardNumber => $shard) {
            $shards[] = new Shard($shardNumber, $shard);
        }

        return $shards;
    }
public function getShards(): array
    {
        $shards = [];
        foreach ($this->_data['shards'] as $shardNumber => $shard) {
            $shards[] = new Shard($shardNumber, $shard);
        }

        return $shards;
    }
public function getShards ( ) : array { $ shards = [ ] ; foreach ( $ this -> _data [ 'shards' ] as $ shardNumber => $ shard ) { $ shards [ ] = new Shard ( $ shardNumber , $ shard ) ; } return $ shards ; }
Gets the health of the shards in this index.

@return Shard[]
Gets the health of the shards in this index .