1
0
Fork 0
mirror of https://codeberg.org/demostf/api.git synced 2026-06-04 10:24:07 +02:00

type hint all the things

This commit is contained in:
Robin Appelman 2020-11-28 23:37:02 +01:00
commit 3f9e613e77
34 changed files with 287 additions and 309 deletions

View file

@ -5,26 +5,13 @@ declare(strict_types=1);
namespace Demostf\API\Data;
class Player {
/** @var int */
private $id;
/** @var int */
private $demoId;
/** @var int */
private $demoUserId;
/** @var int */
private $userId;
/** @var string */
private $name;
/** @var string */
private $team;
/** @var string */
private $class;
private int $id;
private int $demoId;
private int $demoUserId;
private int $userId;
private string $name;
private string $team;
private string $class;
public function __construct(int $id, int $demoId, int $demoUserId, int $userId, string $name, string $team, string $class) {
$this->id = $id;