for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the ONGR package.
*
* (c) NFQ Technologies UAB <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace ONGR\ElasticsearchDSL\Aggregation\Bucketing;
use ONGR\ElasticsearchDSL\Aggregation\AbstractAggregation;
use ONGR\ElasticsearchDSL\Aggregation\Type\BucketingTrait;
/**
* Class representing GlobalAggregation.
* @link https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-global-aggregation.html
class GlobalAggregation extends AbstractAggregation
{
use BucketingTrait;
* {@inheritdoc}
public function setField($field)
throw new \LogicException("Global aggregation, doesn't support `field` parameter");
}
public function getType()
return 'global';
public function getArray()
return new \stdClass();