src/Model/AchievementProgress.php
public function isUnlocked()
    {
        if (!is_null($this->unlockedAt)) {
            return true;
        }
        if ($this->points >= $this->details->points) {
            return true;
        }
        return false;
    }
public function isUnlocked()
    {
        if (!is_null($this->unlockedAt)) {
            return true;
        }
        if ($this->points >= $this->details->points) {
            return true;
        }
        return false;
    }
public function isUnlocked ( ) { if ( ! is_null ( $ this -> unlockedAt ) ) { return true ; } if ( $ this -> points >= $ this -> details -> points ) { return true ; } return false ; }
Checks if the achievement has been unlocked.

@return bool
Checks if the achievement has been unlocked .