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