| @@ 116-123 (lines=8) @@ | ||
| 113 | /** |
|
| 114 | * {@inheritdoc} |
|
| 115 | */ |
|
| 116 | public function persist(User $aUser) |
|
| 117 | { |
|
| 118 | $this->users[$aUser->id()->id()] = $aUser; |
|
| 119 | ||
| 120 | if ($this->eventBus instanceof UserEventBus) { |
|
| 121 | $this->handle($aUser->events()); |
|
| 122 | } |
|
| 123 | } |
|
| 124 | ||
| 125 | /** |
|
| 126 | * {@inheritdoc} |
|
| @@ 128-135 (lines=8) @@ | ||
| 125 | /** |
|
| 126 | * {@inheritdoc} |
|
| 127 | */ |
|
| 128 | public function remove(User $aUser) |
|
| 129 | { |
|
| 130 | unset($this->users[$aUser->id()->id()]); |
|
| 131 | ||
| 132 | if ($this->eventBus instanceof UserEventBus) { |
|
| 133 | $this->handle($aUser->events()); |
|
| 134 | } |
|
| 135 | } |
|
| 136 | ||
| 137 | /** |
|
| 138 | * {@inheritdoc} |
|