Ejemplo n.º 1
0
 /**
  * @param string $type
  *
  * @return RFMMetricCategory
  */
 protected function getCategory($type)
 {
     $category = new RFMMetricCategory();
     $category->setCategoryType($type);
     return $category;
 }
Ejemplo n.º 2
0
 /**
  * @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;
 }