Skip to content

Commit

Permalink
Metric parameter can accept arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
polyfractal committed Feb 11, 2014
1 parent c0a5d5d commit 3f7270b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Elasticsearch/Endpoints/Cluster/State.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ public function setMetric($metric)
return $this;
}

if (is_array($metric) === true) {
$metric = implode(",", $metric);
}

$this->metric = $metric;
return $this;
}
Expand Down

0 comments on commit 3f7270b

Please sign in to comment.