@@ -631,7 +631,7 @@ interface MessageInterface
631
631
* new protocol version.
632
632
*
633
633
* @param string $version HTTP protocol version
634
- * @return self
634
+ * @return static
635
635
*/
636
636
public function withProtocolVersion($version);
637
637
@@ -721,7 +721,7 @@ interface MessageInterface
721
721
*
722
722
* @param string $name Case-insensitive header field name.
723
723
* @param string|string[] $value Header value(s).
724
- * @return self
724
+ * @return static
725
725
* @throws \InvalidArgumentException for invalid header names or values.
726
726
*/
727
727
public function withHeader($name, $value);
@@ -739,7 +739,7 @@ interface MessageInterface
739
739
*
740
740
* @param string $name Case-insensitive header field name to add.
741
741
* @param string|string[] $value Header value(s).
742
- * @return self
742
+ * @return static
743
743
* @throws \InvalidArgumentException for invalid header names.
744
744
* @throws \InvalidArgumentException for invalid header values.
745
745
*/
@@ -755,7 +755,7 @@ interface MessageInterface
755
755
* the named header.
756
756
*
757
757
* @param string $name Case-insensitive header field name to remove.
758
- * @return self
758
+ * @return static
759
759
*/
760
760
public function withoutHeader($name);
761
761
@@ -776,7 +776,7 @@ interface MessageInterface
776
776
* new body stream.
777
777
*
778
778
* @param StreamInterface $body Body.
779
- * @return self
779
+ * @return static
780
780
* @throws \InvalidArgumentException When the body is not valid.
781
781
*/
782
782
public function withBody(StreamInterface $body);
@@ -843,7 +843,7 @@ interface RequestInterface extends MessageInterface
843
843
* @see http://tools.ietf.org/html/rfc7230#section-5.3 (for the various
844
844
* request-target forms allowed in request messages)
845
845
* @param mixed $requestTarget
846
- * @return self
846
+ * @return static
847
847
*/
848
848
public function withRequestTarget($requestTarget);
849
849
@@ -866,7 +866,7 @@ interface RequestInterface extends MessageInterface
866
866
* changed request method.
867
867
*
868
868
* @param string $method Case-sensitive method.
869
- * @return self
869
+ * @return static
870
870
* @throws \InvalidArgumentException for invalid HTTP methods.
871
871
*/
872
872
public function withMethod($method);
@@ -910,7 +910,7 @@ interface RequestInterface extends MessageInterface
910
910
* @see http://tools.ietf.org/html/rfc3986#section-4.3
911
911
* @param UriInterface $uri New request URI to use.
912
912
* @param bool $preserveHost Preserve the original state of the Host header.
913
- * @return self
913
+ * @return static
914
914
*/
915
915
public function withUri(UriInterface $uri, $preserveHost = false);
916
916
}
@@ -1000,7 +1000,7 @@ interface ServerRequestInterface extends RequestInterface
1000
1000
* updated cookie values.
1001
1001
*
1002
1002
* @param array $cookies Array of key/value pairs representing cookies.
1003
- * @return self
1003
+ * @return static
1004
1004
*/
1005
1005
public function withCookieParams(array $cookies);
1006
1006
@@ -1038,7 +1038,7 @@ interface ServerRequestInterface extends RequestInterface
1038
1038
*
1039
1039
* @param array $query Array of query string arguments, typically from
1040
1040
* $_GET.
1041
- * @return self
1041
+ * @return static
1042
1042
*/
1043
1043
public function withQueryParams(array $query);
1044
1044
@@ -1064,7 +1064,7 @@ interface ServerRequestInterface extends RequestInterface
1064
1064
* updated body parameters.
1065
1065
*
1066
1066
* @param array $uploadedFiles An array tree of UploadedFileInterface instances.
1067
- * @return self
1067
+ * @return static
1068
1068
* @throws \InvalidArgumentException if an invalid structure is provided.
1069
1069
*/
1070
1070
public function withUploadedFiles(array $uploadedFiles);
@@ -1110,7 +1110,7 @@ interface ServerRequestInterface extends RequestInterface
1110
1110
*
1111
1111
* @param null|array|object $data The deserialized body data. This will
1112
1112
* typically be in an array or object.
1113
- * @return self
1113
+ * @return static
1114
1114
* @throws \InvalidArgumentException if an unsupported argument type is
1115
1115
* provided.
1116
1116
*/
@@ -1159,7 +1159,7 @@ interface ServerRequestInterface extends RequestInterface
1159
1159
* @see getAttributes()
1160
1160
* @param string $name The attribute name.
1161
1161
* @param mixed $value The value of the attribute.
1162
- * @return self
1162
+ * @return static
1163
1163
*/
1164
1164
public function withAttribute($name, $value);
1165
1165
@@ -1175,7 +1175,7 @@ interface ServerRequestInterface extends RequestInterface
1175
1175
*
1176
1176
* @see getAttributes()
1177
1177
* @param string $name The attribute name.
1178
- * @return self
1178
+ * @return static
1179
1179
*/
1180
1180
public function withoutAttribute($name);
1181
1181
}
@@ -1231,7 +1231,7 @@ interface ResponseInterface extends MessageInterface
1231
1231
* @param string $reasonPhrase The reason phrase to use with the
1232
1232
* provided status code; if none is provided, implementations MAY
1233
1233
* use the defaults as suggested in the HTTP specification.
1234
- * @return self
1234
+ * @return static
1235
1235
* @throws \InvalidArgumentException For invalid status code arguments.
1236
1236
*/
1237
1237
public function withStatus($code, $reasonPhrase = '');
@@ -1605,7 +1605,7 @@ interface UriInterface
1605
1605
* An empty scheme is equivalent to removing the scheme.
1606
1606
*
1607
1607
* @param string $scheme The scheme to use with the new instance.
1608
- * @return self A new instance with the specified scheme.
1608
+ * @return static A new instance with the specified scheme.
1609
1609
* @throws \InvalidArgumentException for invalid schemes.
1610
1610
* @throws \InvalidArgumentException for unsupported schemes.
1611
1611
*/
@@ -1623,7 +1623,7 @@ interface UriInterface
1623
1623
*
1624
1624
* @param string $user The user name to use for authority.
1625
1625
* @param null|string $password The password associated with $user.
1626
- * @return self A new instance with the specified user information.
1626
+ * @return static A new instance with the specified user information.
1627
1627
*/
1628
1628
public function withUserInfo($user, $password = null);
1629
1629
@@ -1636,7 +1636,7 @@ interface UriInterface
1636
1636
* An empty host value is equivalent to removing the host.
1637
1637
*
1638
1638
* @param string $host The hostname to use with the new instance.
1639
- * @return self A new instance with the specified host.
1639
+ * @return static A new instance with the specified host.
1640
1640
* @throws \InvalidArgumentException for invalid hostnames.
1641
1641
*/
1642
1642
public function withHost($host);
@@ -1655,7 +1655,7 @@ interface UriInterface
1655
1655
*
1656
1656
* @param null|int $port The port to use with the new instance; a null value
1657
1657
* removes the port information.
1658
- * @return self A new instance with the specified port.
1658
+ * @return static A new instance with the specified port.
1659
1659
* @throws \InvalidArgumentException for invalid ports.
1660
1660
*/
1661
1661
public function withPort($port);
@@ -1679,7 +1679,7 @@ interface UriInterface
1679
1679
* Implementations ensure the correct encoding as outlined in getPath().
1680
1680
*
1681
1681
* @param string $path The path to use with the new instance.
1682
- * @return self A new instance with the specified path.
1682
+ * @return static A new instance with the specified path.
1683
1683
* @throws \InvalidArgumentException for invalid paths.
1684
1684
*/
1685
1685
public function withPath($path);
@@ -1696,7 +1696,7 @@ interface UriInterface
1696
1696
* An empty query string value is equivalent to removing the query string.
1697
1697
*
1698
1698
* @param string $query The query string to use with the new instance.
1699
- * @return self A new instance with the specified query string.
1699
+ * @return static A new instance with the specified query string.
1700
1700
* @throws \InvalidArgumentException for invalid query strings.
1701
1701
*/
1702
1702
public function withQuery($query);
@@ -1713,7 +1713,7 @@ interface UriInterface
1713
1713
* An empty fragment value is equivalent to removing the fragment.
1714
1714
*
1715
1715
* @param string $fragment The fragment to use with the new instance.
1716
- * @return self A new instance with the specified fragment.
1716
+ * @return static A new instance with the specified fragment.
1717
1717
*/
1718
1718
public function withFragment($fragment);
1719
1719
0 commit comments