1
0
Fork 0
mirror of https://codeberg.org/demostf/api.git synced 2026-06-03 18:04:08 +02:00

more type hints

This commit is contained in:
Robin Appelman 2022-01-23 16:04:09 +01:00
commit 4f617d12d4
11 changed files with 700 additions and 546 deletions

View file

@ -8,60 +8,17 @@ namespace Demostf\API\Demo;
* HL2 demo metadata.
*/
class Header {
/**
* @var string
*/
protected $type;
/**
* @var int
*/
protected $version;
/**
* @var int
*/
protected $protocol;
/**
* @var string
*/
protected $server;
/**
* @var string
*/
protected $nick;
/**
* @var string
*/
protected $map;
/**
* @var string
*/
protected $game;
/**
* @var float
*/
protected $duration;
/**
* @var int
*/
protected $ticks;
/**
* @var int
*/
protected $frames;
/**
* @var int
*/
protected $sigon;
protected string $type;
protected int $version;
protected int $protocol;
protected string $server;
protected string $nick;
protected string $map;
protected string $game;
protected float $duration;
protected int $ticks;
protected int $frames;
protected int $sigon;
public function __construct(
string $type,