1
0
Fork 0
mirror of https://codeberg.org/demostf/api.git synced 2026-06-04 02:14:06 +02:00
This commit is contained in:
Robin Appelman 2019-01-23 18:56:44 +01:00
commit c29fe61ad1
24 changed files with 1242 additions and 50 deletions

View file

@ -79,7 +79,7 @@ class DemoPlayer implements \JsonSerializable {
return $this->deaths;
}
public static function fromRow($row): DemoPlayer {
public static function fromRow($row): self {
return new self(
$row['id'],
$row['user_id'],

View file

@ -34,11 +34,11 @@ class SteamUser implements \JsonSerializable {
return [
'id' => $this->getId(),
'steamid' => $this->getSteamId(),
'name' => $this->getName()
'name' => $this->getName(),
];
}
public static function fromRow(array $row): SteamUser {
public static function fromRow(array $row): self {
return new self(
(int) $row['id'],
$row['steamid'],

View file

@ -53,7 +53,7 @@ class User implements \JsonSerializable {
];
}
public static function fromRow(array $row): User {
public static function fromRow(array $row): self {
return new self(
(int) $row['id'],
$row['steamid'],