also looking at this
add test case
#37
8 files
+106
-88
| @@ -58,12 +58,14 @@ class Folder | ||
| 58 | 58 | return $this->all(); |
| 59 | 59 | } |
| 60 | 60 | |
| 61 | if (! is_int($id)) { | |
| 62 | throw new InvalidFormatException(); | |
| 63 | } | |
| 64 | ||
| 65 | 61 | $ids = is_array($id) ? $id : func_get_args(); |
| 66 | 62 | |
| 63 | foreach ($ids as $id) { | |
| 64 | if (! is_int($id)) { | |
| 65 | throw new InvalidFormatException(); | |
| 66 | } | |
| 67 | } | |
| 68 | ||
| 67 | 69 | return $this->client->request('GET', 'folders', ['folder_ids' => $ids]); |
| 68 | 70 | } |
| 69 | 71 | |