@@ 432-444 (lines=13) @@ | ||
429 | /** |
|
430 | * {@inheritdoc} |
|
431 | */ |
|
432 | public function remove($key) |
|
433 | { |
|
434 | $this->initialize(); |
|
435 | $removed = $this->coll->remove($key); |
|
436 | ||
437 | if ( ! $removed) { |
|
438 | return $removed; |
|
439 | } |
|
440 | ||
441 | $this->changed(); |
|
442 | ||
443 | return $removed; |
|
444 | } |
|
445 | ||
446 | /** |
|
447 | * {@inheritdoc} |
|
@@ 449-461 (lines=13) @@ | ||
446 | /** |
|
447 | * {@inheritdoc} |
|
448 | */ |
|
449 | public function removeElement($element) |
|
450 | { |
|
451 | $this->initialize(); |
|
452 | $removed = $this->coll->removeElement($element); |
|
453 | ||
454 | if ( ! $removed) { |
|
455 | return $removed; |
|
456 | } |
|
457 | ||
458 | $this->changed(); |
|
459 | ||
460 | return $removed; |
|
461 | } |
|
462 | ||
463 | /** |
|
464 | * {@inheritdoc} |