protected function setBody($data)
    {
        $this->responseWriter->setBody($this->response, $data, $this->request);
    }
protected function setBody($data)
    {
        $this->responseWriter->setBody($this->response, $data, $this->request);
    }
protected function setBody ( $ data ) { $ this -> responseWriter -> setBody ( $ this -> response , $ data , $ this -> request ) ; }
Method to set a response body

@param mixed $data
@param string $writerType
@deprecated
Method to set a response body