20 lines
362 B
PHP
20 lines
362 B
PHP
<?php
|
|
|
|
namespace Interop\Http\Factory;
|
|
|
|
use Psr\Http\Message\RequestInterface;
|
|
use Psr\Http\Message\UriInterface;
|
|
|
|
interface RequestFactoryInterface
|
|
{
|
|
/**
|
|
* Create a new request.
|
|
*
|
|
* @param string $method
|
|
* @param UriInterface|string $uri
|
|
*
|
|
* @return RequestInterface
|
|
*/
|
|
public function createRequest($method, $uri);
|
|
}
|