コード例 #1
0
ファイル: Objective.php プロジェクト: profcab/ilios
 /**
  * @param ProgramYearInterface $programYear
  */
 public function addProgramYear(ProgramYearInterface $programYear)
 {
     $this->programYears->add($programYear);
 }
コード例 #2
0
ファイル: Competency.php プロジェクト: stopfstedt/ilios
 /**
  * @inheritdoc
  */
 public function removeProgramYear(ProgramYearInterface $programYear)
 {
     if ($this->programYears->contains($programYear)) {
         $this->programYears->removeElement($programYear);
         $programYear->removeCompetency($this);
     }
 }