mirror of
https://codeberg.org/demostf/api.git
synced 2026-06-04 02:14:06 +02:00
kills and player
This commit is contained in:
parent
71db345f9b
commit
f0065d8e86
14 changed files with 861 additions and 143 deletions
50
src/Data/Kill.php
Normal file
50
src/Data/Kill.php
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
<?php declare(strict_types=1);
|
||||
|
||||
namespace Demostf\API\Data;
|
||||
|
||||
class Kill {
|
||||
private $id;
|
||||
|
||||
private $demoId;
|
||||
|
||||
private $attackerId;
|
||||
|
||||
private $assisterId;
|
||||
|
||||
private $victimId;
|
||||
|
||||
private $weapon;
|
||||
|
||||
public function __construct(int $id, int $demoId, int $attackerId, int $assisterId, int $victimId, string $weapon) {
|
||||
$this->id = $id;
|
||||
$this->demoId = $demoId;
|
||||
$this->attackerId = $attackerId;
|
||||
$this->assisterId = $assisterId;
|
||||
$this->victimId = $victimId;
|
||||
$this->weapon = $weapon;
|
||||
}
|
||||
|
||||
public function getId(): int {
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
public function getDemoId(): int {
|
||||
return $this->demoId;
|
||||
}
|
||||
|
||||
public function getAttackerId(): int {
|
||||
return $this->attackerId;
|
||||
}
|
||||
|
||||
public function getAssisterId(): int {
|
||||
return $this->assisterId;
|
||||
}
|
||||
|
||||
public function getVictimId(): int {
|
||||
return $this->victimId;
|
||||
}
|
||||
|
||||
public function getWeapon(): string {
|
||||
return $this->weapon;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue