Skip to content
This repository was archived by the owner on May 13, 2023. It is now read-only.

Commit 17a221d

Browse files
committed
Update docblocks
1 parent 9141e26 commit 17a221d

File tree

4 files changed

+13
-8
lines changed

4 files changed

+13
-8
lines changed

src/ClientContextFactory.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@
55
use Psr\Http\Message\UriInterface;
66

77
/**
8-
* All the factory components that could be used in client context (like an HTTP Client)
8+
* All the factory components that could be used in client context (like an HTTP Client).
99
*
1010
* @author Márk Sági-Kazár <[email protected]>
1111
*/
1212
interface ClientContextFactory extends MessageFactory, StreamFactory, UriFactory
1313
{
14-
1514
}

src/MessageFactory.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@
88
use Psr\Http\Message\StreamInterface;
99

1010
/**
11+
* Factory for PSR-7 Request and Response.
12+
*
1113
* @author Márk Sági-Kazár <[email protected]>
1214
*/
1315
interface MessageFactory
1416
{
1517
/**
16-
* Creates a new request
18+
* Creates a new PSR-7 request.
1719
*
1820
* @param string $method
1921
* @param string|UriInterface $uri
@@ -32,7 +34,7 @@ public function createRequest(
3234
);
3335

3436
/**
35-
* Creates a response
37+
* Creates a new PSR-7 response.
3638
*
3739
* @param integer $statusCode
3840
* @param string|null $reasonPhrase

src/StreamFactory.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,20 @@
55
use Psr\Http\Message\StreamInterface;
66

77
/**
8+
* Factory for PSR-7 Stream.
9+
*
810
* @author Márk Sági-Kazár <[email protected]>
911
*/
1012
interface StreamFactory
1113
{
1214
/**
13-
* Creates a stream
15+
* Creates a new PSR-7 stream.
1416
*
1517
* @param string|resource|StreamInterface|null $body
1618
*
1719
* @return StreamInterface
1820
*
19-
* @throws \InvalidArgumentException If the stream body is invalid
21+
* @throws \InvalidArgumentException If the stream body is invalid.
2022
*/
2123
public function createStream($body = null);
2224
}

src/UriFactory.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,20 @@
55
use Psr\Http\Message\UriInterface;
66

77
/**
8+
* Factory for PSR-7 URI.
9+
*
810
* @author Márk Sági-Kazár <[email protected]>
911
*/
1012
interface UriFactory
1113
{
1214
/**
13-
* Creates an URI
15+
* Creates an PSR-7 URI.
1416
*
1517
* @param mixed $uri
1618
*
1719
* @return UriInterface
1820
*
19-
* @throws \InvalidArgumentException If the URI is invalid
21+
* @throws \InvalidArgumentException If the URI is invalid.
2022
*/
2123
public function createUri($uri);
2224
}

0 commit comments

Comments
 (0)