1 | <?php |
||
5 | class Flag |
||
6 | { |
||
7 | const END_STREAM = 0x01; |
||
8 | const ACK = 0x01; |
||
9 | const END_HEADERS = 0x04; |
||
10 | const PADDED = 0x08; |
||
11 | const PRIORITY = 0x20; |
||
12 | |||
13 | protected $bit; |
||
14 | |||
15 | public function __construct($bit) |
||
19 | |||
20 | /** |
||
21 | * @return int (as hex) |
||
22 | */ |
||
23 | public function getBit() |
||
27 | |||
28 | public function __toString(): string |
||
37 | } |
||
38 |