src/Components/DocumentDBConnection.php
public function listCollections(array $options = [])
    {
        $this->setOptions($options);
        $coll = new Collection($this->client, $this->database);
        $coll->setHeaders($this->getHeaders());
        $rs = $coll->getAll();
        $this->checkResponse($rs);
        $colls = array_get($rs, 'DocumentCollections');
        $list = [];
        if (!empty($colls)) {
            foreach ($colls as $coll) {
                $list[] = array_get($coll, 'id');
            }
        }

        return $list;
    }
public function listCollections(array $options = [])
    {
        $this->setOptions($options);
        $coll = new Collection($this->client, $this->database);
        $coll->setHeaders($this->getHeaders());
        $rs = $coll->getAll();
        $this->checkResponse($rs);
        $colls = array_get($rs, 'DocumentCollections');
        $list = [];
        if (!empty($colls)) {
            foreach ($colls as $coll) {
                $list[] = array_get($coll, 'id');
            }
        }

        return $list;
    }
public function listCollections ( array $ options = [ ] ) { $ this -> setOptions ( $ options ) ; $ coll = new Collection ( $ this -> client , $ this -> database ) ; $ coll -> setHeaders ( $ this -> getHeaders ( ) ) ; $ rs = $ coll -> getAll ( ) ; $ this -> checkResponse ( $ rs ) ; $ colls = array_get ( $ rs , 'DocumentCollections' ) ; $ list = [ ] ; if ( ! empty ( $ colls ) ) { foreach ( $ colls as $ coll ) { $ list [ ] = array_get ( $ coll , 'id' ) ; } } return $ list ; }
List all collections in a Database.

@param array $options Operation options

@return array
List all collections in a Database .