예제 #1
0
파일: User.php 프로젝트: Okami-/ilios
 /**
  * @param ReportInterface $report
  */
 public function addReport(ReportInterface $report)
 {
     $this->reports->add($report);
 }
예제 #2
0
파일: User.php 프로젝트: stopfstedt/ilios
 /**
  * @param ReportInterface $report
  */
 public function addReport(ReportInterface $report)
 {
     if (!$this->reports->contains($report)) {
         $this->reports->add($report);
     }
 }