* @since 2.0 */ interface ResponseFormatter { /** * Formats the given data for the response. * @param Response $response the response object that will accept the formatted result * @param mixed $data the data to be formatted * @return string the formatted result */ function format($response, $data); }