src/EntityRelationsAchievements.php
public function hasUnlocked(Achievement $achievement)
    {
        $status = $this->achievementStatus($achievement);
        if (is_null($status) || is_null($status->unlocked_at)) {
            return false;
        }
        return true;
    }
public function hasUnlocked(Achievement $achievement)
    {
        $status = $this->achievementStatus($achievement);
        if (is_null($status) || is_null($status->unlocked_at)) {
            return false;
        }
        return true;
    }
public function hasUnlocked ( Achievement $ achievement ) { $ status = $ this -> achievementStatus ( $ achievement ) ; if ( is_null ( $ status ) || is_null ( $ status -> unlocked_at ) ) { return false ; } return true ; }
Return true if the user has unlocked this achievement, false otherwise.
@param  Achievement $achievement
@return bool
Return true if the user has unlocked this achievement false otherwise .