@@ 245-253 (lines=9) @@ | ||
242 | */ |
|
243 | public function getMultiple($keys, $default = null) |
|
244 | { |
|
245 | if (!is_array($keys)) |
|
246 | { |
|
247 | if (!($keys instanceof \Traversable)) |
|
248 | { |
|
249 | throw new InvalidArgumentException('$keys is neither an array nor Traversable'); |
|
250 | } |
|
251 | ||
252 | $keys = iterator_to_array($keys, false); |
|
253 | } |
|
254 | ||
255 | $items = $this->getItems($keys); |
|
256 | ||
@@ 324-332 (lines=9) @@ | ||
321 | */ |
|
322 | public function deleteMultiple($keys) |
|
323 | { |
|
324 | if (!is_array($keys)) |
|
325 | { |
|
326 | if (!$keys instanceof \Traversable) |
|
327 | { |
|
328 | throw new InvalidArgumentException('$keys is neither an array nor Traversable'); |
|
329 | } |
|
330 | ||
331 | $keys = iterator_to_array($keys, false); |
|
332 | } |
|
333 | ||
334 | return $this->deleteItems($keys); |
|
335 | } |