| Total Complexity | 4 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class Stats extends AAnswer |
||
| 15 | { |
||
| 16 | protected int $time = 0; |
||
| 17 | protected int $size = 0; |
||
| 18 | protected int $type = 0; |
||
| 19 | |||
| 20 | 1 | public function process(): parent |
|
| 21 | { |
||
| 22 | 1 | $data = $this->answer->getContent(); |
|
| 23 | 1 | $this->time = Fsp\Strings::mb_ord(substr($data, 0, 4)); |
|
| 24 | 1 | $this->size = Fsp\Strings::mb_ord(substr($data, 4, 4)); |
|
| 25 | 1 | $this->type = Fsp\Strings::mb_ord($data[8]); |
|
| 26 | 1 | return $this; |
|
|
|
|||
| 27 | } |
||
| 28 | |||
| 29 | 1 | public function getTime(): int |
|
| 32 | } |
||
| 33 | |||
| 34 | 1 | public function getSize(): int |
|
| 37 | } |
||
| 38 | |||
| 39 | 1 | public function getType(): int |
|
| 44 |