File: //proc/self/cwd/nueva/modules/btecommercecopilot/vendor/psr/http-message/src/UriInterface.php
<?php
declare(strict_types=1);
namespace Psr\Http\Message;
/**
* Value object representing a URI.
*
* This interface is meant to represent URIs according to RFC 3986 and to
* provide methods for most common operations. Additional functionality for
* working with URIs can be provided on top of the interface or externally.
* Its primary use is for HTTP requests, but may also be used in other
* contexts.
*
* Instances of this interface are considered immutable; all methods that
* might change state MUST be implemented such that they retain the internal
* state of the current instance and return an instance that contains the
* changed state.
*
* Typically the Host header will be also be present in the request message.
* For server-side requests, the scheme will typically be discoverable in the
* server parameters.
*
* @link http://tools.ietf.org/html/rfc3986 (the URI specification)
*/
interface UriInterface
{
public function getScheme();
public function getAuthority();
public function getUserInfo();
public function getHost();
public function getPort();
public function getPath();
public function getQuery();
public function getFragment();
public function withScheme(string $scheme);
public function withUserInfo(string $user, ?string $password = null);
public function withHost(string $host);
public function withPort(?int $port);
public function withPath(string $path);
public function withQuery(string $query);
public function withFragment(string $fragment);
public function __toString();
}