mirror of
https://codeberg.org/demostf/api.git
synced 2026-06-03 18:04:08 +02:00
Add php-cs-fixer
This commit is contained in:
parent
e00e6ece5f
commit
309ae17036
54 changed files with 4900 additions and 4106 deletions
|
|
@ -5,60 +5,60 @@ namespace Demostf\API\Data;
|
|||
use Demostf\API\Demo\ChatMessage;
|
||||
|
||||
class ParsedDemo {
|
||||
/** @var int */
|
||||
private $redScore;
|
||||
/** @var int */
|
||||
private $blueScore;
|
||||
/** @var ChatMessage[] */
|
||||
private $chat;
|
||||
/** @var ParsedPlayer[] */
|
||||
private $players;
|
||||
/** @var ParsedKill[] */
|
||||
private $kills;
|
||||
/** @var int */
|
||||
private $redScore;
|
||||
/** @var int */
|
||||
private $blueScore;
|
||||
/** @var ChatMessage[] */
|
||||
private $chat;
|
||||
/** @var ParsedPlayer[] */
|
||||
private $players;
|
||||
/** @var ParsedKill[] */
|
||||
private $kills;
|
||||
|
||||
/**
|
||||
* ParsedDemo constructor.
|
||||
*
|
||||
* @param int $redScore
|
||||
* @param int $blueScore
|
||||
* @param ChatMessage[] $chat
|
||||
* @param ParsedPlayer[] $players
|
||||
* @param ParsedKill[] $kills
|
||||
*/
|
||||
public function __construct(int $redScore, int $blueScore, array $chat, array $players, array $kills) {
|
||||
$this->redScore = $redScore;
|
||||
$this->blueScore = $blueScore;
|
||||
$this->chat = $chat;
|
||||
$this->players = $players;
|
||||
$this->kills = $kills;
|
||||
}
|
||||
/**
|
||||
* ParsedDemo constructor.
|
||||
*
|
||||
* @param int $redScore
|
||||
* @param int $blueScore
|
||||
* @param ChatMessage[] $chat
|
||||
* @param ParsedPlayer[] $players
|
||||
* @param ParsedKill[] $kills
|
||||
*/
|
||||
public function __construct(int $redScore, int $blueScore, array $chat, array $players, array $kills) {
|
||||
$this->redScore = $redScore;
|
||||
$this->blueScore = $blueScore;
|
||||
$this->chat = $chat;
|
||||
$this->players = $players;
|
||||
$this->kills = $kills;
|
||||
}
|
||||
|
||||
public function getRedScore(): int {
|
||||
return $this->redScore;
|
||||
}
|
||||
public function getRedScore(): int {
|
||||
return $this->redScore;
|
||||
}
|
||||
|
||||
public function getBlueScore(): int {
|
||||
return $this->blueScore;
|
||||
}
|
||||
public function getBlueScore(): int {
|
||||
return $this->blueScore;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ChatMessage[]
|
||||
*/
|
||||
public function getChat(): array {
|
||||
return $this->chat;
|
||||
}
|
||||
/**
|
||||
* @return ChatMessage[]
|
||||
*/
|
||||
public function getChat(): array {
|
||||
return $this->chat;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ParsedPlayer[]
|
||||
*/
|
||||
public function getPlayers(): array {
|
||||
return $this->players;
|
||||
}
|
||||
/**
|
||||
* @return ParsedPlayer[]
|
||||
*/
|
||||
public function getPlayers(): array {
|
||||
return $this->players;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ParsedKill[]
|
||||
*/
|
||||
public function getKills(): array {
|
||||
return $this->kills;
|
||||
}
|
||||
/**
|
||||
* @return ParsedKill[]
|
||||
*/
|
||||
public function getKills(): array {
|
||||
return $this->kills;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue