Skip to content
Snippets Groups Projects
Commit 5ea9af01 authored by Mantas Jonušas's avatar Mantas Jonušas
Browse files

Code changed to use getters

parent 1826e526
No related branches found
No related tags found
No related merge requests found
......@@ -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();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment