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:
parent
28589d505d
commit
3f9e613e77
34 changed files with 287 additions and 309 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue