setField($field); } } /** * Set compression parameter. * * @param float $value * * @return $this */ public function setCompression($value) { return $this->setParam('compression', (float) $value); } /** * Set which percents must be returned. * * @param float[] $percents * * @return $this */ public function setPercents(array $percents) { return $this->setParam('percents', $percents); } /** * Add yet another percent to result. * * @param float $percent * * @return $this */ public function addPercent($percent) { return $this->addParam('percents', (float) $percent); } }