From ca5a1c22a4709f6ac81704d988599032d5e9fc9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mantas=20Jonu=C5=A1as?= <mantas.jonusas@nfq.lt> Date: Tue, 24 Mar 2015 10:13:00 +0200 Subject: [PATCH] Added max aggregation --- Aggregation/MaxAggregation.php | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Aggregation/MaxAggregation.php diff --git a/Aggregation/MaxAggregation.php b/Aggregation/MaxAggregation.php new file mode 100644 index 0000000..c198923 --- /dev/null +++ b/Aggregation/MaxAggregation.php @@ -0,0 +1,26 @@ +<?php + +/* + * This file is part of the ONGR package. + * + * (c) NFQ Technologies UAB <info@nfq.com> + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace ONGR\ElasticsearchBundle\DSL\Aggregation; + +/** + * Class representing Max Aggregation. + */ +class MaxAggregation extends StatsAggregation +{ + /** + * {@inheritdoc} + */ + public function getType() + { + return 'max'; + } +} -- GitLab