From 2877933298601b3b2889735f276df4f38dbe9f38 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:23:17 +0200
Subject: [PATCH] Added sum aggregation

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

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