From 1acf3d6f83bcdd2acc2c5f2ee3caaf1bc4eea141 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Mantas=20Marcinkevi=C4=8Dius?= <marc.mantas@gmail.com>
Date: Mon, 29 Aug 2016 11:08:24 +0300
Subject: [PATCH] added stats pipeline aggregation

---
 .../Pipeline/StatsBucketAggregation.php       | 28 +++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 src/Aggregation/Pipeline/StatsBucketAggregation.php

diff --git a/src/Aggregation/Pipeline/StatsBucketAggregation.php b/src/Aggregation/Pipeline/StatsBucketAggregation.php
new file mode 100644
index 0000000..43d6b62
--- /dev/null
+++ b/src/Aggregation/Pipeline/StatsBucketAggregation.php
@@ -0,0 +1,28 @@
+<?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\ElasticsearchDSL\Aggregation\Pipeline;
+
+/**
+ * Class representing Stats Bucket Pipeline Aggregation.
+ *
+ * @link https://goo.gl/apQXaQ
+ */
+class StatsBucketAggregation extends AbstractPipelineAggregation
+{
+    /**
+     * {@inheritdoc}
+     */
+    public function getType()
+    {
+        return 'stats_bucket';
+    }
+}
-- 
GitLab