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