Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
28 | public function getCollectionsList() |
||
29 | { |
||
30 | $response = $this->query('GET', 'v1/me/collections/'); |
||
31 | |||
32 | if ($response->hasProperty(('collections')) !== true) { |
||
33 | throw new RuntimeException('Missing "collections" property in response content'); |
||
34 | } |
||
35 | |||
36 | return \PhraseanetSDK\Entity\MeCollection::fromList($response->getProperty('collections')); |
||
37 | } |
||
38 | } |
||
39 |