| @@ 153-164 (lines=12) @@ | ||
| 150 | * @return bool|null |
|
| 151 | * @throws InvalidArgumentException |
|
| 152 | */ |
|
| 153 | public function deleteItemsByTags(array $tagNames) |
|
| 154 | { |
|
| 155 | $return = null; |
|
| 156 | foreach ($tagNames as $tagName) { |
|
| 157 | $result = $this->deleteItemsByTag($tagName); |
|
| 158 | if ($return !== false) { |
|
| 159 | $return = $result; |
|
| 160 | } |
|
| 161 | } |
|
| 162 | ||
| 163 | return $return; |
|
| 164 | } |
|
| 165 | ||
| 166 | /** |
|
| 167 | * @inheritdoc |
|
| @@ 186-197 (lines=12) @@ | ||
| 183 | /** |
|
| 184 | * @inheritdoc |
|
| 185 | */ |
|
| 186 | public function incrementItemsByTags(array $tagNames, $step = 1) |
|
| 187 | { |
|
| 188 | $return = null; |
|
| 189 | foreach ($tagNames as $tagName) { |
|
| 190 | $result = $this->incrementItemsByTag($tagName, $step); |
|
| 191 | if ($return !== false) { |
|
| 192 | $return = $result; |
|
| 193 | } |
|
| 194 | } |
|
| 195 | ||
| 196 | return $return; |
|
| 197 | } |
|
| 198 | ||
| 199 | /** |
|
| 200 | * @inheritdoc |
|
| @@ 219-230 (lines=12) @@ | ||
| 216 | /** |
|
| 217 | * @inheritdoc |
|
| 218 | */ |
|
| 219 | public function decrementItemsByTags(array $tagNames, $step = 1) |
|
| 220 | { |
|
| 221 | $return = null; |
|
| 222 | foreach ($tagNames as $tagName) { |
|
| 223 | $result = $this->decrementItemsByTag($tagName, $step); |
|
| 224 | if ($return !== false) { |
|
| 225 | $return = $result; |
|
| 226 | } |
|
| 227 | } |
|
| 228 | ||
| 229 | return $return; |
|
| 230 | } |
|
| 231 | ||
| 232 | /** |
|
| 233 | * @inheritdoc |
|
| @@ 252-263 (lines=12) @@ | ||
| 249 | /** |
|
| 250 | * @inheritdoc |
|
| 251 | */ |
|
| 252 | public function appendItemsByTags(array $tagNames, $data) |
|
| 253 | { |
|
| 254 | $return = null; |
|
| 255 | foreach ($tagNames as $tagName) { |
|
| 256 | $result = $this->decrementItemsByTag($tagName, $data); |
|
| 257 | if ($return !== false) { |
|
| 258 | $return = $result; |
|
| 259 | } |
|
| 260 | } |
|
| 261 | ||
| 262 | return $return; |
|
| 263 | } |
|
| 264 | ||
| 265 | /** |
|
| 266 | * @inheritdoc |
|
| @@ 285-296 (lines=12) @@ | ||
| 282 | /** |
|
| 283 | * @inheritdoc |
|
| 284 | */ |
|
| 285 | public function prependItemsByTags(array $tagNames, $data) |
|
| 286 | { |
|
| 287 | $return = null; |
|
| 288 | foreach ($tagNames as $tagName) { |
|
| 289 | $result = $this->decrementItemsByTag($tagName, $data); |
|
| 290 | if ($return !== false) { |
|
| 291 | $return = $result; |
|
| 292 | } |
|
| 293 | } |
|
| 294 | ||
| 295 | return $return; |
|
| 296 | } |
|
| 297 | ||
| 298 | /** |
|
| 299 | * @param \Psr\Cache\CacheItemInterface $item |
|