protected function preparePutRequest(RequestInterface $request, $data)
    {
        $request->setOption(CURLOPT_CUSTOMREQUEST, 'PUT');
        if ($data !== null) {
            $request->setOption(CURLOPT_POSTFIELDS, $data);
        }
    }
protected function preparePutRequest(RequestInterface $request, $data)
    {
        $request->setOption(CURLOPT_CUSTOMREQUEST, 'PUT');
        if ($data !== null) {
            $request->setOption(CURLOPT_POSTFIELDS, $data);
        }
    }
protected function preparePutRequest ( RequestInterface $ request , $ data ) { $ request -> setOption ( CURLOPT_CUSTOMREQUEST , 'PUT' ) ; if ( $ data !== null ) { $ request -> setOption ( CURLOPT_POSTFIELDS , $ data ) ; } }
Sets a request's HTTP verb to PUT.

@param RequestInterface $request
Sets a request s HTTP verb to PUT .