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

upload and tests

This commit is contained in:
Robin Appelman 2017-04-10 00:58:50 +02:00
commit 03d3acebf5
21 changed files with 1026 additions and 152 deletions

View file

@ -12,7 +12,7 @@ class Demo implements \JsonSerializable {
private $name;
/** @var string */
private $server;
/** @var int */
/** @var float */
private $duration;
/** @var string */
private $nick;
@ -44,7 +44,7 @@ class Demo implements \JsonSerializable {
string $url,
string $name,
string $server,
int $duration,
float $duration,
string $nick,
string $map,
\DateTime $time,
@ -89,7 +89,7 @@ class Demo implements \JsonSerializable {
return $this->server;
}
public function getDuration(): int {
public function getDuration(): float {
return $this->duration;
}
@ -157,6 +157,9 @@ class Demo implements \JsonSerializable {
);
}
/**
* @return DemoPlayer[]
*/
public function getPlayers(): array {
return $this->players;
}