/**
  * @param string $attribute
  * @param CurriculumInventoryAcademicLevelInterface $level
  * @param TokenInterface $token
  * @return bool
  */
 protected function voteOnAttribute($attribute, $level, TokenInterface $token)
 {
     return parent::voteOnAttribute($attribute, $level->getReport(), $token);
 }
Exemplo n.º 2
0
 /**
  * @param CurriculumInventoryAcademicLevelInterface $academicLevel
  */
 public function addAcademicLevel(CurriculumInventoryAcademicLevelInterface $academicLevel)
 {
     $this->academicLevels->add($academicLevel);
 }
 /**
  * @param string $attribute
  * @param CurriculumInventoryAcademicLevelInterface $level
  * @param UserInterface $user
  * @return bool
  */
 protected function isGranted($attribute, $level, $user = null)
 {
     return parent::isGranted($attribute, $level->getReport(), $user);
 }
 /**
  * @param CurriculumInventoryAcademicLevelInterface $academicLevel
  */
 public function removeAcademicLevel(CurriculumInventoryAcademicLevelInterface $academicLevel)
 {
     $this->academicLevels->removeElement($academicLevel);
 }