99use React \Stream \WritableStreamInterface ;
1010
1111/**
12+ * [Internal] Bridge between StreamInterface from PSR-7 and ReadableStreamInterface from ReactPHP
13+ *
14+ * This class is used in the server to stream the body of an incoming response
15+ * from the client. This allows us to stream big amounts of data without having
16+ * to buffer this data. Similarly, this used to stream the body of an outgoing
17+ * request body to the client. The data will be sent directly to the client.
18+ *
19+ * Note that this is an internal class only and nothing you should usually care
20+ * about. See the `StreamInterface` and `ReadableStreamInterface` for more
21+ * details.
22+ *
23+ * @see StreamInterface
24+ * @see ReadableStreamInterface
1225 * @internal
13- * Uses a StreamInterface from PSR-7 and a ReadableStreamInterface from ReactPHP
14- * to use PSR-7 objects and use ReactPHP streams
15- * This is class is used in `HttpServer` to stream the body of a response
16- * to the client. Because of this you can stream big amount of data without
17- * necessity of buffering this data. The data will be send directly to the client.
1826 */
1927class HttpBodyStream extends EventEmitter implements StreamInterface, ReadableStreamInterface
2028{
@@ -23,8 +31,8 @@ class HttpBodyStream extends EventEmitter implements StreamInterface, ReadableSt
2331 private $ size ;
2432
2533 /**
26- * @param ReadableStreamInterface $input - Stream data from $stream as a body of a PSR-7 object4
27- * @param int|null $size - size of the data body
34+ * @param ReadableStreamInterface $input Stream data from $stream as a body of a PSR-7 object4
35+ * @param int|null $size size of the data body
2836 */
2937 public function __construct (ReadableStreamInterface $ input , $ size )
3038 {
0 commit comments