1 | <?php |
||
15 | class ContinuationFrame extends \Hyphper\Frame |
||
16 | { |
||
17 | protected $defined_flags = [Flag::END_HEADERS]; |
||
18 | protected $type = 0x09; |
||
19 | protected $stream_association = self::HAS_STREAM; |
||
20 | protected $data; |
||
21 | |||
22 | /** |
||
23 | * ContinuationFrame constructor. |
||
24 | * |
||
25 | * @param array $options |
||
26 | */ |
||
27 | 3 | public function __construct(array $options = []) |
|
33 | |||
34 | /** |
||
35 | * @return string |
||
36 | */ |
||
37 | 1 | public function serializeBody(): string |
|
41 | |||
42 | /** |
||
43 | * Given the body of a frame, parses it into frame data. This populates |
||
44 | * the non-header parts of the frame: that is, it does not populate the |
||
45 | * stream ID or flags. |
||
46 | * |
||
47 | * |
||
48 | * @param string $data |
||
49 | * |
||
50 | * @return void |
||
51 | */ |
||
52 | 1 | public function parseBody(string $data) |
|
57 | |||
58 | /** |
||
59 | * @param mixed|string $data |
||
60 | * |
||
61 | * @return ContinuationFrame |
||
62 | */ |
||
63 | 1 | public function setData($data) |
|
69 | |||
70 | /** |
||
71 | * @return mixed|string |
||
72 | */ |
||
73 | 1 | public function getData() |
|
77 | } |
||
78 |