示例#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);
     }
 }