Skip to content

Commit a5da0e4

Browse files
committed
Removes internal interfaces
1 parent 6c8195f commit a5da0e4

File tree

6 files changed

+8
-256
lines changed

6 files changed

+8
-256
lines changed

src/Exception/HttpAdapterException.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
namespace Http\Adapter\Exception;
1313

1414
use Http\Adapter\Exception;
15-
use Http\Adapter\Message\InternalRequest;
15+
use Psr\Http\Message\RequestInterface;
1616
use 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

src/HasConfiguration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
namespace Http\Adapter;
1313

1414
/**
15-
* Allows global configurations
15+
* Provides a configuration reading interface
1616
*
1717
* This interface does not allow modifying options
1818
*

src/Message/ConfigurableMessage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
use 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 [email protected]>
2121
*/

src/Message/InternalRequest.php

Lines changed: 0 additions & 142 deletions
This file was deleted.

src/Message/MessageFactory.php

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff 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
*

src/Message/ParameterableMessage.php

Lines changed: 0 additions & 81 deletions
This file was deleted.

0 commit comments

Comments
 (0)