1: <?php
2:
3: namespace React\Stream;
4:
5: /**
6: * The `DuplexStreamInterface` is responsible for providing an interface for
7: * duplex streams (both readable and writable).
8: *
9: * It builds on top of the existing interfaces for readable and writable streams
10: * and follows the exact same method and event semantics.
11: * If you're new to this concept, you should look into the
12: * `ReadableStreamInterface` and `WritableStreamInterface` first.
13: *
14: * Besides defining a few methods, this interface also implements the
15: * `EventEmitterInterface` which allows you to react to the same events defined
16: * on the `ReadbleStreamInterface` and `WritableStreamInterface`.
17: *
18: * @see ReadableStreamInterface
19: * @see WritableStreamInterface
20: */
21: interface DuplexStreamInterface extends ReadableStreamInterface, WritableStreamInterface
22: {
23: }
24: