Example #1
0
 /**
  * Checks if profile has a given achievement.
  * 
  * @param \Calculus\BaranekBundle\Entity\Achievement $achievement
  * @param \Calculus\UserBundle\Entity\Profile $profile
  * @return boolean
  */
 private function hasAchievement(\Calculus\BaranekBundle\Entity\Achievement $achievement, \Calculus\UserBundle\Entity\Profile $profile) : bool
 {
     $achievements = $profile->getAchievements();
     return $achievements->contains($achievement);
 }