# tablepress/2.2.4/libraries/vendor/Psr/Http/Message/ResponseFactoryInterface.php

TablePress – Tables in WordPress made easy, version 2.2.4. 19 lines.

- Page: https://pluginprobe.com/plugins/tablepress/2.2.4/code/libraries/vendor/Psr/Http/Message/ResponseFactoryInterface.php
- Raw: https://pluginprobe.com/plugins/tablepress/2.2.4/raw/libraries/vendor/Psr/Http/Message/ResponseFactoryInterface.php
- Modified: 2022-12-19T11:32:06+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/tablepress/2.2.4/code/libraries/vendor/Psr/Http/Message/ResponseFactoryInterface.php#L10-L20`.

```php
<?php

namespace TablePress\Psr\Http\Message;

interface ResponseFactoryInterface
{
	/**
	 * Create a new response.
	 *
	 * @param int $code HTTP status code; defaults to 200
	 * @param string $reasonPhrase Reason phrase to associate with status code
	 *     in generated response; if none is provided implementations MAY use
	 *     the defaults as suggested in the HTTP specification.
	 *
	 * @return ResponseInterface
	 */
	public function createResponse(int $code = 200, string $reasonPhrase = ''): ResponseInterface;
}

```
