for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace kalanis\RemoteRequest\Protocols\Fsp\Answer;
use kalanis\RemoteRequest\Protocols\Fsp;
/**
* Class Stats
* @package kalanis\RemoteRequest\Protocols\Fsp\Answer
* Process stats answer
*/
class Stats extends AAnswer
{
protected int $time = 0;
protected int $size = 0;
protected int $type = 0;
public function process(): parent
$data = $this->answer->getContent();
$this->time = Fsp\Strings::mb_ord(substr($data, 0, 4));
$this->size = Fsp\Strings::mb_ord(substr($data, 4, 4));
$this->type = Fsp\Strings::mb_ord($data[8]);
return $this;
return $this
kalanis\RemoteRequest\Protocols\Fsp\Answer\Stats
parent
}
public function getTime(): int
return $this->time;
public function getSize(): int
return $this->size;
public function getType(): int
return $this->type;