| @@ 167-178 (lines=12) @@ | ||
| 164 | /** |
|
| 165 | * {@inheritdoc} |
|
| 166 | */ |
|
| 167 | public function createOrUpdate(ObjectInterface $object) |
|
| 168 | { |
|
| 169 | if (!$object instanceof UserObject) { |
|
| 170 | return; |
|
| 171 | } |
|
| 172 | ||
| 173 | if (!$this->find($object)) { |
|
| 174 | return $this->create($object); |
|
| 175 | } else { |
|
| 176 | return $this->update($object); |
|
| 177 | } |
|
| 178 | } |
|
| 179 | ||
| 180 | /** |
|
| 181 | * {@inheritdoc} |
|
| @@ 188-199 (lines=12) @@ | ||
| 185 | /** |
|
| 186 | * {@inheritdoc} |
|
| 187 | */ |
|
| 188 | public function createOrUpdate(ObjectInterface $object) |
|
| 189 | { |
|
| 190 | if (!$object instanceof UserGroupObject) { |
|
| 191 | return; |
|
| 192 | } |
|
| 193 | ||
| 194 | if (!$this->find($object)) { |
|
| 195 | return $this->create($object); |
|
| 196 | } else { |
|
| 197 | return $this->update($object); |
|
| 198 | } |
|
| 199 | } |
|
| 200 | ||
| 201 | /** |
|
| 202 | * {@inheritdoc} |
|