Mineplex2018-withcommit/Plugins/Mineplex.ReportServer/web/snapshot.php
Keir Nellyer a663cb3e01 Revert "Revert "Report system (version 1)""
This reverts commit d0d2de1e21.

# Conflicts:
#	Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/Clans.java
2016-05-04 15:24:29 +01:00

62 lines
1.1 KiB
PHP

<?php class Snapshot
{
/** @var String */
private $identifier;
/** @var Message[] */
private $messages;
/** @var Player[] */
private $players; // String UUID as Key
/** @var DateTime */
private $generated;
/**
* Snapshot constructor.
* @param String $identifier
* @param Message[] $messages
* @param Player[] $players
* @param DateTime $generated
*/
function Snapshot($identifier, $messages, $players, $generated)
{
$this->identifier = $identifier;
$this->messages = $messages;
$this->players = $players;
$this->generated = $generated;
}
/**
* @return String
*/
public function getIdentifier()
{
return $this->identifier;
}
/**
* @return Message[]
*/
public function getMessages()
{
return $this->messages;
}
/**
* @return Player[]
*/
public function getPlayers()
{
return $this->players;
}
/**
* @return DateTime
*/
public function getTimeGenerated()
{
return $this->generated;
}
}