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