/** * @param string $type * * @return RFMMetricCategory */ protected function getCategory($type) { $category = new RFMMetricCategory(); $category->setCategoryType($type); return $category; }
/** * @param string $type * @param int $index * @param int $minValue * @param int $maxValue * * @return RFMMetricCategory */ protected function getCategory($type, $index, $minValue, $maxValue) { $category = new RFMMetricCategory(); $category->setCategoryType($type)->setCategoryIndex($index)->setMinValue($minValue)->setMaxValue($maxValue); return $category; }