protected function isCompletedCriteria(AchievementCriteria $criteria, AchievementCriteriaProgress $progress): bool
    {
        $progress->completed = $progress->value >= $criteria->maxValue();

        return $progress->completed;
    }
protected function isCompletedCriteria(AchievementCriteria $criteria, AchievementCriteriaProgress $progress): bool
    {
        $progress->completed = $progress->value >= $criteria->maxValue();

        return $progress->completed;
    }
protected function isCompletedCriteria ( AchievementCriteria $ criteria , AchievementCriteriaProgress $ progress ) : bool { $ progress -> completed = $ progress -> value >= $ criteria -> maxValue ( ) ; return $ progress -> completed ; }
Determines if given criteria was completed.

@param AchievementCriteria         $criteria
@param AchievementCriteriaProgress $progress

@return bool
Determines if given criteria was completed .