From 5ea9af018510d6d98fa3233356bb5b01c663d2a2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Mantas=20Jonu=C5=A1as?= <mantas.jonusas@nfq.lt>
Date: Mon, 9 Mar 2015 16:20:57 +0200
Subject: [PATCH] Code changed to use getters

---
 Aggregation/GeoHashGridAggregation.php | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Aggregation/GeoHashGridAggregation.php b/Aggregation/GeoHashGridAggregation.php
index f5fb75c..e2642a5 100644
--- a/Aggregation/GeoHashGridAggregation.php
+++ b/Aggregation/GeoHashGridAggregation.php
@@ -96,15 +96,15 @@ class GeoHashGridAggregation extends AbstractAggregation
             throw new \LogicException('Geo bounds aggregation must have a field set.');
         }
 
-        if ($this->precision) {
+        if ($this->getPrecision()) {
             $data['precision'] = $this->getPrecision();
         }
 
-        if ($this->size) {
+        if ($this->getSize()) {
             $data['size'] = $this->getSize();
         }
 
-        if ($this->shardSize) {
+        if ($this->getShardSize()) {
             $data['shard_size'] = $this->getShardSize();
         }
 
-- 
GitLab