| @@ 356-368 (lines=13) @@ | ||
| 353 | /** |
|
| 354 | * {@inheritdoc} |
|
| 355 | */ |
|
| 356 | public function remove($key) |
|
| 357 | { |
|
| 358 | $this->initialize(); |
|
| 359 | $removed = $this->coll->remove($key); |
|
| 360 | ||
| 361 | if ( ! $removed) { |
|
| 362 | return $removed; |
|
| 363 | } |
|
| 364 | ||
| 365 | $this->changed(); |
|
| 366 | ||
| 367 | return $removed; |
|
| 368 | } |
|
| 369 | ||
| 370 | /** |
|
| 371 | * {@inheritdoc} |
|
| @@ 373-385 (lines=13) @@ | ||
| 370 | /** |
|
| 371 | * {@inheritdoc} |
|
| 372 | */ |
|
| 373 | public function removeElement($element) |
|
| 374 | { |
|
| 375 | $this->initialize(); |
|
| 376 | $removed = $this->coll->removeElement($element); |
|
| 377 | ||
| 378 | if ( ! $removed) { |
|
| 379 | return $removed; |
|
| 380 | } |
|
| 381 | ||
| 382 | $this->changed(); |
|
| 383 | ||
| 384 | return $removed; |
|
| 385 | } |
|
| 386 | ||
| 387 | /** |
|
| 388 | * {@inheritdoc} |
|