From c982974ba06c5e512d84ef28e2113d47dc99cc06 Mon Sep 17 00:00:00 2001
From: Aivaras Gotovskis <aivaras.gotovskis@ongr.io>
Date: Thu, 9 Jul 2015 15:59:14 +0300
Subject: [PATCH] Add constructor arguments to MissingAggregation.

---
 src/Aggregation/MissingAggregation.php | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/src/Aggregation/MissingAggregation.php b/src/Aggregation/MissingAggregation.php
index feec6a6..5330289 100644
--- a/src/Aggregation/MissingAggregation.php
+++ b/src/Aggregation/MissingAggregation.php
@@ -20,6 +20,19 @@ class MissingAggregation extends AbstractAggregation
 {
     use BucketingTrait;
 
+    /**
+     * Inner aggregations container init.
+     *
+     * @param string $name
+     * @param string $field
+     */
+    public function __construct($name, $field = null)
+    {
+        parent::__construct($name);
+
+        $this->setField($field);
+    }
+
     /**
      * {@inheritdoc}
      */
-- 
GitLab