public function getBuckets()
    {
        if (!isset($this->rawData['buckets'])) {
            return null;
        }

        $buckets = [];

        foreach ($this->rawData['buckets'] as $bucket) {
            $buckets[] = new self($bucket);
        }

        return $buckets;
    }
public function getBuckets()
    {
        if (!isset($this->rawData['buckets'])) {
            return null;
        }

        $buckets = [];

        foreach ($this->rawData['buckets'] as $bucket) {
            $buckets[] = new self($bucket);
        }

        return $buckets;
    }
public function getBuckets ( ) { if ( ! isset ( $ this -> rawData [ 'buckets' ] ) ) { return null ; } $ buckets = [ ] ; foreach ( $ this -> rawData [ 'buckets' ] as $ bucket ) { $ buckets [ ] = new self ( $ bucket ) ; } return $ buckets ; }
Returns array of bucket values.

@return AggregationValue[]|null
Returns array of bucket values .