changes for filter and print
This commit is contained in:
33
vendor/psr/http-message/src/UriInterface.php
vendored
33
vendor/psr/http-message/src/UriInterface.php
vendored
@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
namespace Psr\Http\Message;
|
||||
|
||||
/**
|
||||
@ -37,7 +38,7 @@ interface UriInterface
|
||||
* @see https://tools.ietf.org/html/rfc3986#section-3.1
|
||||
* @return string The URI scheme.
|
||||
*/
|
||||
public function getScheme();
|
||||
public function getScheme(): string;
|
||||
|
||||
/**
|
||||
* Retrieve the authority component of the URI.
|
||||
@ -57,7 +58,7 @@ interface UriInterface
|
||||
* @see https://tools.ietf.org/html/rfc3986#section-3.2
|
||||
* @return string The URI authority, in "[user-info@]host[:port]" format.
|
||||
*/
|
||||
public function getAuthority();
|
||||
public function getAuthority(): string;
|
||||
|
||||
/**
|
||||
* Retrieve the user information component of the URI.
|
||||
@ -74,7 +75,7 @@ interface UriInterface
|
||||
*
|
||||
* @return string The URI user information, in "username[:password]" format.
|
||||
*/
|
||||
public function getUserInfo();
|
||||
public function getUserInfo(): string;
|
||||
|
||||
/**
|
||||
* Retrieve the host component of the URI.
|
||||
@ -87,7 +88,7 @@ interface UriInterface
|
||||
* @see http://tools.ietf.org/html/rfc3986#section-3.2.2
|
||||
* @return string The URI host.
|
||||
*/
|
||||
public function getHost();
|
||||
public function getHost(): string;
|
||||
|
||||
/**
|
||||
* Retrieve the port component of the URI.
|
||||
@ -104,7 +105,7 @@ interface UriInterface
|
||||
*
|
||||
* @return null|int The URI port.
|
||||
*/
|
||||
public function getPort();
|
||||
public function getPort(): ?int;
|
||||
|
||||
/**
|
||||
* Retrieve the path component of the URI.
|
||||
@ -131,7 +132,7 @@ interface UriInterface
|
||||
* @see https://tools.ietf.org/html/rfc3986#section-3.3
|
||||
* @return string The URI path.
|
||||
*/
|
||||
public function getPath();
|
||||
public function getPath(): string;
|
||||
|
||||
/**
|
||||
* Retrieve the query string of the URI.
|
||||
@ -153,7 +154,7 @@ interface UriInterface
|
||||
* @see https://tools.ietf.org/html/rfc3986#section-3.4
|
||||
* @return string The URI query string.
|
||||
*/
|
||||
public function getQuery();
|
||||
public function getQuery(): string;
|
||||
|
||||
/**
|
||||
* Retrieve the fragment component of the URI.
|
||||
@ -171,7 +172,7 @@ interface UriInterface
|
||||
* @see https://tools.ietf.org/html/rfc3986#section-3.5
|
||||
* @return string The URI fragment.
|
||||
*/
|
||||
public function getFragment();
|
||||
public function getFragment(): string;
|
||||
|
||||
/**
|
||||
* Return an instance with the specified scheme.
|
||||
@ -188,7 +189,7 @@ interface UriInterface
|
||||
* @return static A new instance with the specified scheme.
|
||||
* @throws \InvalidArgumentException for invalid or unsupported schemes.
|
||||
*/
|
||||
public function withScheme($scheme);
|
||||
public function withScheme(string $scheme): UriInterface;
|
||||
|
||||
/**
|
||||
* Return an instance with the specified user information.
|
||||
@ -204,7 +205,7 @@ interface UriInterface
|
||||
* @param null|string $password The password associated with $user.
|
||||
* @return static A new instance with the specified user information.
|
||||
*/
|
||||
public function withUserInfo($user, $password = null);
|
||||
public function withUserInfo(string $user, ?string $password = null): UriInterface;
|
||||
|
||||
/**
|
||||
* Return an instance with the specified host.
|
||||
@ -218,7 +219,7 @@ interface UriInterface
|
||||
* @return static A new instance with the specified host.
|
||||
* @throws \InvalidArgumentException for invalid hostnames.
|
||||
*/
|
||||
public function withHost($host);
|
||||
public function withHost(string $host): UriInterface;
|
||||
|
||||
/**
|
||||
* Return an instance with the specified port.
|
||||
@ -237,7 +238,7 @@ interface UriInterface
|
||||
* @return static A new instance with the specified port.
|
||||
* @throws \InvalidArgumentException for invalid ports.
|
||||
*/
|
||||
public function withPort($port);
|
||||
public function withPort(?int $port): UriInterface;
|
||||
|
||||
/**
|
||||
* Return an instance with the specified path.
|
||||
@ -261,7 +262,7 @@ interface UriInterface
|
||||
* @return static A new instance with the specified path.
|
||||
* @throws \InvalidArgumentException for invalid paths.
|
||||
*/
|
||||
public function withPath($path);
|
||||
public function withPath(string $path): UriInterface;
|
||||
|
||||
/**
|
||||
* Return an instance with the specified query string.
|
||||
@ -278,7 +279,7 @@ interface UriInterface
|
||||
* @return static A new instance with the specified query string.
|
||||
* @throws \InvalidArgumentException for invalid query strings.
|
||||
*/
|
||||
public function withQuery($query);
|
||||
public function withQuery(string $query): UriInterface;
|
||||
|
||||
/**
|
||||
* Return an instance with the specified URI fragment.
|
||||
@ -294,7 +295,7 @@ interface UriInterface
|
||||
* @param string $fragment The fragment to use with the new instance.
|
||||
* @return static A new instance with the specified fragment.
|
||||
*/
|
||||
public function withFragment($fragment);
|
||||
public function withFragment(string $fragment): UriInterface;
|
||||
|
||||
/**
|
||||
* Return the string representation as a URI reference.
|
||||
@ -319,5 +320,5 @@ interface UriInterface
|
||||
* @see http://tools.ietf.org/html/rfc3986#section-4.1
|
||||
* @return string
|
||||
*/
|
||||
public function __toString();
|
||||
public function __toString(): string;
|
||||
}
|
||||
|
Reference in New Issue
Block a user