File tree Expand file tree Collapse file tree 6 files changed +8
-256
lines changed Top Open diff view settings Expand file tree Collapse file tree 6 files changed +8
-256
lines changed Top Open diff view settings Original file line number Diff line number Diff line change 1212namespace Http \Adapter \Exception ;
1313
1414use Http \Adapter \Exception ;
15- use Http \Adapter \ Message \InternalRequest ;
15+ use Psr \ Http \Message \RequestInterface ;
1616use Psr \Http \Message \ResponseInterface ;
1717
1818/**
@@ -23,7 +23,7 @@ interface HttpAdapterException extends Exception
2323 /**
2424 * Returns the request
2525 *
26- * @return InternalRequest |null
26+ * @return RequestInterface |null
2727 */
2828 public function getRequest ();
2929
@@ -37,9 +37,9 @@ public function hasRequest();
3737 /**
3838 * Sets the request
3939 *
40- * @param InternalRequest |null $request
40+ * @param RequestInterface |null $request
4141 */
42- public function setRequest (InternalRequest $ request = null );
42+ public function setRequest (RequestInterface $ request = null );
4343
4444 /**
4545 * Returns the response
Original file line number Diff line number Diff line change 1212namespace Http \Adapter ;
1313
1414/**
15- * Allows global configurations
15+ * Provides a configuration reading interface
1616 *
1717 * This interface does not allow modifying options
1818 *
Original file line number Diff line number Diff line change 1515use Http \Adapter \HasConfiguration ;
1616
1717/**
18- * Allows to modify configuration in a request an immutable way
18+ * Allows to modify configuration in a message an immutable way
1919 *
2020 * @author Márk Sági-Kazár mark.sagikazar@gmail.com>
2121 */
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ interface MessageFactory
2525 /**
2626 * Returns the base URI
2727 *
28- * @return null| UriInterface
28+ * @return UriInterface|null
2929 */
3030 public function getBaseUri ();
3131
@@ -39,7 +39,7 @@ public function hasBaseUri();
3939 /**
4040 * Sets the base URI
4141 *
42- * @param null| string|UriInterface $baseUri
42+ * @param string|UriInterface|null $baseUri
4343 *
4444 * @throws \InvalidArgumentException If the base uri is invalid.
4545 */
@@ -64,31 +64,6 @@ public function createRequest(
6464 $ body = null
6565 );
6666
67- /**
68- * Creates an internal request
69- *
70- * @param string $method
71- * @param string|UriInterface $uri
72- * @param string $protocolVersion
73- * @param string[] $headers
74- * @param array|string $data
75- * @param array $files
76- * @param array $parameters
77- * @param array $options
78- *
79- * @return InternalRequest
80- */
81- public function createInternalRequest (
82- $ method ,
83- $ uri ,
84- $ protocolVersion = '1.1 ' ,
85- array $ headers = [],
86- $ data = [],
87- array $ files = [],
88- array $ parameters = [],
89- array $ options = []
90- );
91-
9267 /**
9368 * Creates a response
9469 *
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments