src/Components/DocumentDBConnection.php
public function listDocuments($collection, array $options = [])
    {
        $this->setOptions($options);
        $doc = new Document($this->client, $this->database, $collection);
        $doc->setHeaders($this->getHeaders());
        $rs = $doc->getAll();
        $this->checkResponse($rs);
        unset($rs['_curl_info']);

        return $rs;
    }
public function listDocuments($collection, array $options = [])
    {
        $this->setOptions($options);
        $doc = new Document($this->client, $this->database, $collection);
        $doc->setHeaders($this->getHeaders());
        $rs = $doc->getAll();
        $this->checkResponse($rs);
        unset($rs['_curl_info']);

        return $rs;
    }
public function listDocuments ( $ collection , array $ options = [ ] ) { $ this -> setOptions ( $ options ) ; $ doc = new Document ( $ this -> client , $ this -> database , $ collection ) ; $ doc -> setHeaders ( $ this -> getHeaders ( ) ) ; $ rs = $ doc -> getAll ( ) ; $ this -> checkResponse ( $ rs ) ; unset ( $ rs [ '_curl_info' ] ) ; return $ rs ; }
List all documents in a collection.

@param string $collection Collection to list documents from
@param array  $options    Operation options

@return array
List all documents in a collection .