| @@ 450-458 (lines=9) @@ | ||
| 447 | * |
|
| 448 | * @return User |
|
| 449 | */ |
|
| 450 | public function addTutorizedGroup(Group $tutorizedGroup) |
|
| 451 | { |
|
| 452 | if (false === $this->tutorizedGroups->contains($tutorizedGroup)) { |
|
| 453 | $this->tutorizedGroups[] = $tutorizedGroup; |
|
| 454 | $tutorizedGroup->addTutor($this); |
|
| 455 | } |
|
| 456 | ||
| 457 | return $this; |
|
| 458 | } |
|
| 459 | ||
| 460 | /** |
|
| 461 | * Remove tutorizedGroup |
|
| @@ 465-471 (lines=7) @@ | ||
| 462 | * |
|
| 463 | * @param Group $tutorizedGroup |
|
| 464 | */ |
|
| 465 | public function removeTutorizedGroup(Group $tutorizedGroup) |
|
| 466 | { |
|
| 467 | if (true === $this->tutorizedGroups->contains($tutorizedGroup)) { |
|
| 468 | $this->tutorizedGroups->removeElement($tutorizedGroup); |
|
| 469 | $tutorizedGroup->removeTutor($this); |
|
| 470 | } |
|
| 471 | } |
|
| 472 | ||
| 473 | /** |
|
| 474 | * Get tutorizedGroups |
|