Mineplex2018-withcommit/Plugins/Mineplex.ReportServer/web/snapshot.php

62 lines
1.1 KiB
PHP
Raw Normal View History

<?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;
}
}