public function write(Response $response, $data, $status = 200)
    {
        return $response->withStatus($status)->getBody()->write($data);
    }
public function write(Response $response, $data, $status = 200)
    {
        return $response->withStatus($status)->getBody()->write($data);
    }
public function write ( Response $ response , $ data , $ status = 200 ) { return $ response -> withStatus ( $ status ) -> getBody ( ) -> write ( $ data ) ; }
Write text in the response body

@param Response $response
@param string $data
@param int $status
@return int
Write text in the response body