1 | <?php |
||
20 | class ReadEvent extends IoEvent |
||
21 | { |
||
22 | /** |
||
23 | * Data read from network |
||
24 | * |
||
25 | * @var FrameInterface |
||
26 | */ |
||
27 | private $frame; |
||
28 | |||
29 | /** |
||
30 | * Constructor |
||
31 | * |
||
32 | * @param RequestExecutorInterface $executor Request executor object |
||
33 | * @param SocketInterface $socket Socket for this request |
||
34 | * @param mixed $context Any optional user data for event |
||
35 | * @param FrameInterface $frame Network data for read operation |
||
36 | * @param bool $isOutOfBand Flag if data are out of band |
||
37 | */ |
||
38 | 57 | public function __construct( |
|
48 | |||
49 | /** |
||
50 | * Return response frame |
||
51 | * |
||
52 | * @return FrameInterface |
||
53 | */ |
||
54 | 9 | public function getFrame() |
|
58 | |||
59 | /** |
||
60 | * Return true, if frame in this event is partial |
||
61 | * |
||
62 | * @return bool |
||
63 | */ |
||
64 | 3 | public function isPartial() |
|
68 | } |
||
69 |