public function activatePercentage($featureName, $percentage)
    {
        $feature = $this->getFeature($featureName);
        $feature->setPercentage($percentage);
        $this->saveFeature($feature);
    }
public function activatePercentage($featureName, $percentage)
    {
        $feature = $this->getFeature($featureName);
        $feature->setPercentage($percentage);
        $this->saveFeature($feature);
    }
public function activatePercentage ( $ featureName , $ percentage ) { $ feature = $ this -> getFeature ( $ featureName ) ; $ feature -> setPercentage ( $ percentage ) ; $ this -> saveFeature ( $ feature ) ; }
Activates a feature for a percentage of users
@param string $featureName
@param integer $percentage
Activates a feature for a percentage of users