public function collections()
    {
        $uri = $this->uri->withPath($this->uri->getPath() . ':listCollectionIds');
        $value = $this->client->post($uri, null);
        $collections = [];

        foreach ($value['collectionIds'] as $id) {
            $collections[] = $this->collection($id);
        }

        return $collections;
    }
public function collections()
    {
        $uri = $this->uri->withPath($this->uri->getPath() . ':listCollectionIds');
        $value = $this->client->post($uri, null);
        $collections = [];

        foreach ($value['collectionIds'] as $id) {
            $collections[] = $this->collection($id);
        }

        return $collections;
    }
public function collections ( ) { $ uri = $ this -> uri -> withPath ( $ this -> uri -> getPath ( ) . ':listCollectionIds' ) ; $ value = $ this -> client -> post ( $ uri , null ) ; $ collections = [ ] ; foreach ( $ value [ 'collectionIds' ] as $ id ) { $ collections [ ] = $ this -> collection ( $ id ) ; } return $ collections ; }
Returns the root collections.
Returns the root collections .