| @@ 189-200 (lines=12) @@ | ||
| 186 | /** |
|
| 187 | * {@inheritdoc} |
|
| 188 | */ |
|
| 189 | public function createOrUpdate(ObjectInterface $object) |
|
| 190 | { |
|
| 191 | if (!$object instanceof UserGroupObject) { |
|
| 192 | return; |
|
| 193 | } |
|
| 194 | ||
| 195 | if (!$this->find($object)) { |
|
| 196 | return $this->create($object); |
|
| 197 | } else { |
|
| 198 | return $this->update($object); |
|
| 199 | } |
|
| 200 | } |
|
| 201 | ||
| 202 | /** |
|
| 203 | * {@inheritdoc} |
|
| @@ 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} |
|