示例#1
0
文件: Alert.php 项目: profcab/ilios
 /**
  * @param SchoolInterface $recipient
  */
 public function addRecipient(SchoolInterface $recipient)
 {
     $this->recipients->add($recipient);
 }
示例#2
0
 /**
  * @inheritdoc
  */
 public function addRecipient(SchoolInterface $recipient)
 {
     if (!$this->recipients->contains($recipient)) {
         $this->recipients->add($recipient);
     }
 }
示例#3
0
文件: User.php 项目: stopfstedt/ilios
 /**
  * @param SchoolInterface $school
  */
 public function addAdministeredSchool(SchoolInterface $school)
 {
     if (!$this->administeredSchools->contains($school)) {
         $this->administeredSchools->add($school);
         $school->addAdministrator($this);
     }
 }