| Conditions | 4 |
| Paths | 4 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | private function transformKeys($keys) |
||
| 20 | { |
||
| 21 | if ($keys instanceof Traversable) { |
||
| 22 | return $this->transformTraversableKeys($keys); |
||
| 23 | } elseif (is_array($keys)) { |
||
| 24 | foreach ($keys as $key) { |
||
| 25 | $this->validateKey($key); |
||
| 26 | } |
||
| 27 | return $keys; |
||
| 28 | } |
||
| 29 | |||
| 30 | // @todo May need to adjust this exception type |
||
| 31 | throw new InvalidKeyException( |
||
| 32 | "Cannot call getMultiple with a non array or non Traversable type" |
||
| 33 | ); |
||
| 34 | } |
||
| 35 | |||
| 47 |