src/Components/DocumentDBConnection.php
public function replaceCollection(array $data, $id, array $options = [])
    {
        $this->setOptions($options);
        $coll = new Collection($this->client, $this->database);
        $coll->setHeaders($this->getHeaders());
        $rs = $coll->replace($data, $id);
        $this->checkResponse($rs);
        unset($rs['_curl_info']);

        return $rs;
    }
public function replaceCollection(array $data, $id, array $options = [])
    {
        $this->setOptions($options);
        $coll = new Collection($this->client, $this->database);
        $coll->setHeaders($this->getHeaders());
        $rs = $coll->replace($data, $id);
        $this->checkResponse($rs);
        unset($rs['_curl_info']);

        return $rs;
    }
public function replaceCollection ( array $ data , $ id , array $ options = [ ] ) { $ this -> setOptions ( $ options ) ; $ coll = new Collection ( $ this -> client , $ this -> database ) ; $ coll -> setHeaders ( $ this -> getHeaders ( ) ) ; $ rs = $ coll -> replace ( $ data , $ id ) ; $ this -> checkResponse ( $ rs ) ; unset ( $ rs [ '_curl_info' ] ) ; return $ rs ; }
Replaces a collection.

@param array  $data    Collection data
@param string $id
@param array  $options Operation options

@return array
Replaces a collection .