1 | <?php |
||
20 | class WindowUpdateFrame extends \Hyphper\Frame |
||
21 | { |
||
22 | protected $defined_flags = []; |
||
23 | protected $type = 0x08; |
||
24 | protected $stream_association = self::EITHER_STREAM; |
||
25 | protected $window_increment; |
||
26 | |||
27 | /** |
||
28 | * WindowUpdateFrame constructor. |
||
29 | * |
||
30 | * @param array $options |
||
31 | */ |
||
32 | 4 | public function __construct(array $options = []) |
|
38 | |||
39 | /** |
||
40 | * @return string |
||
41 | */ |
||
42 | 1 | public function serializeBody(): string |
|
46 | |||
47 | /** |
||
48 | * Given the body of a frame, parses it into frame data. This populates |
||
49 | * the non-header parts of the frame: that is, it does not populate the |
||
50 | * stream ID or flags. |
||
51 | * |
||
52 | * |
||
53 | * @param string $data |
||
54 | * |
||
55 | * @return void |
||
56 | */ |
||
57 | 2 | public function parseBody(string $data) |
|
66 | |||
67 | /** |
||
68 | * @param int|mixed $window_increment |
||
69 | * |
||
70 | * @return WindowUpdateFrame |
||
71 | */ |
||
72 | 1 | public function setWindowIncrement($window_increment) |
|
78 | |||
79 | /** |
||
80 | * @return int|mixed |
||
81 | */ |
||
82 | 1 | public function getWindowIncrement() |
|
86 | } |
||
87 |