1 | <?php |
||
17 | class RstStreamFrame extends \Hyphper\Frame |
||
18 | { |
||
19 | protected $defined_flags = []; |
||
20 | protected $type = 0x03; |
||
21 | protected $stream_association = self::HAS_STREAM; |
||
22 | protected $error_code; |
||
23 | |||
24 | /** |
||
25 | * RstStreamFrame constructor. |
||
26 | * |
||
27 | * @param array $options |
||
28 | */ |
||
29 | 5 | public function __construct(array $options = []) |
|
34 | |||
35 | /** |
||
36 | * @return string |
||
37 | */ |
||
38 | 1 | public function serializeBody(): string |
|
42 | |||
43 | /** |
||
44 | * Given the body of a frame, parses it into frame data. This populates |
||
45 | * the non-header parts of the frame: that is, it does not populate the |
||
46 | * stream ID or flags. |
||
47 | * |
||
48 | * |
||
49 | * @param string $data |
||
50 | * |
||
51 | * @return void |
||
52 | */ |
||
53 | 2 | public function parseBody(string $data) |
|
69 | |||
70 | /** |
||
71 | * @return int |
||
72 | */ |
||
73 | 1 | public function getErrorCode() |
|
77 | |||
78 | /** |
||
79 | * @param int $error_code |
||
80 | * @return RstStreamFrame |
||
81 | */ |
||
82 | 1 | public function setErrorCode($error_code) |
|
87 | } |
||
88 |