src/Achievement.php
public function setProgressToAchiever($achiever, $points)
    {
        $progress = $this->getOrCreateProgressForAchiever($achiever);

        if (!$progress->isUnlocked()) {
            $progress->points = $points;
            $progress->save();
        }
    }
public function setProgressToAchiever($achiever, $points)
    {
        $progress = $this->getOrCreateProgressForAchiever($achiever);

        if (!$progress->isUnlocked()) {
            $progress->points = $points;
            $progress->save();
        }
    }
public function setProgressToAchiever ( $ achiever , $ points ) { $ progress = $ this -> getOrCreateProgressForAchiever ( $ achiever ) ; if ( ! $ progress -> isUnlocked ( ) ) { $ progress -> points = $ points ; $ progress -> save ( ) ; } }
Sets a specified amount of points to the achievement.

@param mixed $achiever The entity that will add progress to this achievement
@param int   $points   The amount of points to be added to this achievement
Sets a specified amount of points to the achievement .