| @@ 335-347 (lines=13) @@ | ||
| 332 | /** |
|
| 333 | * {@inheritdoc} |
|
| 334 | */ |
|
| 335 | public function remove($key) |
|
| 336 | { |
|
| 337 | $this->initialize(); |
|
| 338 | $removed = $this->coll->remove($key); |
|
| 339 | ||
| 340 | if ( ! $removed) { |
|
| 341 | return $removed; |
|
| 342 | } |
|
| 343 | ||
| 344 | $this->changed(); |
|
| 345 | ||
| 346 | return $removed; |
|
| 347 | } |
|
| 348 | ||
| 349 | /** |
|
| 350 | * {@inheritdoc} |
|
| @@ 352-364 (lines=13) @@ | ||
| 349 | /** |
|
| 350 | * {@inheritdoc} |
|
| 351 | */ |
|
| 352 | public function removeElement($element) |
|
| 353 | { |
|
| 354 | $this->initialize(); |
|
| 355 | $removed = $this->coll->removeElement($element); |
|
| 356 | ||
| 357 | if ( ! $removed) { |
|
| 358 | return $removed; |
|
| 359 | } |
|
| 360 | ||
| 361 | $this->changed(); |
|
| 362 | ||
| 363 | return $removed; |
|
| 364 | } |
|
| 365 | ||
| 366 | /** |
|
| 367 | * {@inheritdoc} |
|