public function write($data)
{
trigger_error(sprintf('%s is now deprecated; use $response->getBody()->write(). ' . '%s will no longer be available starting in Stratigility 2.0.0. ' . 'Please see https://docs.zendframework.com/migration/to-v2/#deprecated-functionality ' . 'for full details.', __CLASS__, __METHOD__), E_USER_DEPRECATED);
if ($this->complete) {
throw $this->responseIsAlreadyCompleted(__METHOD__);
}
$this->getBody()->write($data);
return $this;
}