Commit 171a2c30 authored by xcezx's avatar xcezx

Provides fluent interface

parent aa463671
......@@ -191,11 +191,15 @@ class Grouping extends AbstractComponent
* This overwrites any existing fields
*
* @param array $fields
*
* @return self Provides fluent interface
*/
public function setFields($fields)
{
$this->clearFields();
$this->addFields($fields);
return $this;
}
/**
......
......@@ -248,11 +248,15 @@ class Stats extends AbstractComponent
* This overwrites any existing fields
*
* @param array $fields
*
* @return self Provides fluent interface
*/
public function setFields($fields)
{
$this->clearFields();
$this->addFields($fields);
return $this;
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment