From 77ca967786e6d90dae2f362ad8cb6fe36b57929b 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:07:47 +0200
Subject: [PATCH] Added min aggregation

---
 Aggregation/MinAggregation.php | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 Aggregation/MinAggregation.php

diff --git a/Aggregation/MinAggregation.php b/Aggregation/MinAggregation.php
new file mode 100644
index 0000000..83ed3ba
--- /dev/null
+++ b/Aggregation/MinAggregation.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 Min Aggregation.
+ */
+class MinAggregation extends StatsAggregation
+{
+    /**
+     * {@inheritdoc}
+     */
+    public function getType()
+    {
+        return 'min';
+    }
+}
-- 
GitLab