예제 #1
0
파일: Alert.php 프로젝트: profcab/ilios
 /**
  * @param SchoolInterface $recipient
  */
 public function addRecipient(SchoolInterface $recipient)
 {
     $this->recipients->add($recipient);
 }
예제 #2
0
파일: Alert.php 프로젝트: stopfstedt/ilios
 /**
  * @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);
     }
 }