public function setAverageUserRatingCurrent($averageUserRatingCurrent)
    {
        $averageUserRatingCurrent = (float) $averageUserRatingCurrent;

        if ($averageUserRatingCurrent < 0 || $averageUserRatingCurrent > 5) {
            throw new \InvalidArgumentException(sprintf(
                'Average user rating must be between 0 and 5, "%s" given.',
                $averageUserRatingCurrent
            ));
        }

        if ($averageUserRatingCurrent && fmod($averageUserRatingCurrent, 0.5)) {
            throw new \InvalidArgumentException(sprintf(
                'Rating must be division by 0.5, "%s" given.',
                $averageUserRatingCurrent
            ));
        }

        $this->averageUserRatingCurrent = $averageUserRatingCurrent;

        return $this;
    }
public function setAverageUserRatingCurrent($averageUserRatingCurrent)
    {
        $averageUserRatingCurrent = (float) $averageUserRatingCurrent;

        if ($averageUserRatingCurrent < 0 || $averageUserRatingCurrent > 5) {
            throw new \InvalidArgumentException(sprintf(
                'Average user rating must be between 0 and 5, "%s" given.',
                $averageUserRatingCurrent
            ));
        }

        if ($averageUserRatingCurrent && fmod($averageUserRatingCurrent, 0.5)) {
            throw new \InvalidArgumentException(sprintf(
                'Rating must be division by 0.5, "%s" given.',
                $averageUserRatingCurrent
            ));
        }

        $this->averageUserRatingCurrent = $averageUserRatingCurrent;

        return $this;
    }
public function setAverageUserRatingCurrent ( $ averageUserRatingCurrent ) { $ averageUserRatingCurrent = ( float ) $ averageUserRatingCurrent ; if ( $ averageUserRatingCurrent < 0 || $ averageUserRatingCurrent > 5 ) { throw new \ InvalidArgumentException ( sprintf ( 'Average user rating must be between 0 and 5, "%s" given.' , $ averageUserRatingCurrent ) ) ; } if ( $ averageUserRatingCurrent && fmod ( $ averageUserRatingCurrent , 0.5 ) ) { throw new \ InvalidArgumentException ( sprintf ( 'Rating must be division by 0.5, "%s" given.' , $ averageUserRatingCurrent ) ) ; } $ this -> averageUserRatingCurrent = $ averageUserRatingCurrent ; return $ this ; }
Set average user rating for current version

@param float $averageUserRatingCurrent

@return Software

@throws \InvalidArgumentException
Set average user rating for current version