| @@ 85-101 (lines=17) @@ | ||
| 82 | /** |
|
| 83 | * {@inheritdoc} |
|
| 84 | */ |
|
| 85 | public function removeAll($elements) |
|
| 86 | { |
|
| 87 | $this->validateTraversable($elements); |
|
| 88 | ||
| 89 | $changed = false; |
|
| 90 | foreach ($elements as $element) { |
|
| 91 | if (parent::remove($element)) { |
|
| 92 | $changed = true; |
|
| 93 | } |
|
| 94 | } |
|
| 95 | ||
| 96 | if ($changed) { |
|
| 97 | $this->sort(); |
|
| 98 | } |
|
| 99 | ||
| 100 | return $changed; |
|
| 101 | } |
|
| 102 | ||
| 103 | /** |
|
| 104 | * {@inheritdoc} |
|
| @@ 93-109 (lines=17) @@ | ||
| 90 | /** |
|
| 91 | * {@inheritdoc} |
|
| 92 | */ |
|
| 93 | public function removeAll($elements) |
|
| 94 | { |
|
| 95 | $this->validateTraversable($elements); |
|
| 96 | ||
| 97 | $changed = false; |
|
| 98 | foreach ($elements as $element) { |
|
| 99 | if (parent::remove($element)) { |
|
| 100 | $changed = true; |
|
| 101 | } |
|
| 102 | } |
|
| 103 | ||
| 104 | if ($changed) { |
|
| 105 | $this->sort(); |
|
| 106 | } |
|
| 107 | ||
| 108 | return $changed; |
|
| 109 | } |
|
| 110 | ||
| 111 | /** |
|
| 112 | * {@inheritdoc} |
|
| @@ 120-132 (lines=13) @@ | ||
| 117 | /** |
|
| 118 | * {@inheritdoc} |
|
| 119 | */ |
|
| 120 | public function removeAll($elements) |
|
| 121 | { |
|
| 122 | $this->validateTraversable($elements); |
|
| 123 | ||
| 124 | $changed = false; |
|
| 125 | foreach ($elements as $element) { |
|
| 126 | if ($this->remove($element)) { |
|
| 127 | $changed = true; |
|
| 128 | } |
|
| 129 | } |
|
| 130 | ||
| 131 | return $changed; |
|
| 132 | } |
|
| 133 | ||
| 134 | /** |
|
| 135 | * {@inheritdoc} |
|
| @@ 70-82 (lines=13) @@ | ||
| 67 | /** |
|
| 68 | * {@inheritdoc} |
|
| 69 | */ |
|
| 70 | public function removeAll($elements) |
|
| 71 | { |
|
| 72 | $this->validateTraversable($elements); |
|
| 73 | ||
| 74 | $changed = false; |
|
| 75 | foreach ($elements as $element) { |
|
| 76 | if ($this->remove($element)) { |
|
| 77 | $changed = true; |
|
| 78 | } |
|
| 79 | } |
|
| 80 | ||
| 81 | return $changed; |
|
| 82 | } |
|
| 83 | ||
| 84 | /** |
|
| 85 | * {@inheritdoc} |
|