2015-12-09 19:06:04 +01:00
|
|
|
<?php class Snapshot
|
|
|
|
{
|
|
|
|
|
|
|
|
/** @var String */
|
|
|
|
private $identifier;
|
|
|
|
|
|
|
|
/** @var Message[] */
|
|
|
|
private $messages;
|
|
|
|
|
|
|
|
/** @var Player[] */
|
|
|
|
private $players; // String UUID as Key
|
|
|
|
|
2015-12-15 22:36:54 +01:00
|
|
|
/** @var DateTime */
|
|
|
|
private $generated;
|
2015-12-09 19:06:04 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Snapshot constructor.
|
|
|
|
* @param String $identifier
|
|
|
|
* @param Message[] $messages
|
|
|
|
* @param Player[] $players
|
2015-12-15 22:36:54 +01:00
|
|
|
* @param DateTime $generated
|
2015-12-09 19:06:04 +01:00
|
|
|
*/
|
2015-12-15 22:36:54 +01:00
|
|
|
function Snapshot($identifier, $messages, $players, $generated)
|
2015-12-09 19:06:04 +01:00
|
|
|
{
|
|
|
|
$this->identifier = $identifier;
|
|
|
|
$this->messages = $messages;
|
|
|
|
$this->players = $players;
|
2015-12-15 22:36:54 +01:00
|
|
|
$this->generated = $generated;
|
2015-12-09 19:06:04 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return String
|
|
|
|
*/
|
|
|
|
public function getIdentifier()
|
|
|
|
{
|
|
|
|
return $this->identifier;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return Message[]
|
|
|
|
*/
|
|
|
|
public function getMessages()
|
|
|
|
{
|
|
|
|
return $this->messages;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return Player[]
|
|
|
|
*/
|
|
|
|
public function getPlayers()
|
|
|
|
{
|
|
|
|
return $this->players;
|
|
|
|
}
|
|
|
|
|
2015-12-15 22:36:54 +01:00
|
|
|
/**
|
|
|
|
* @return DateTime
|
|
|
|
*/
|
2015-12-09 19:06:04 +01:00
|
|
|
public function getTimeGenerated()
|
|
|
|
{
|
2015-12-15 22:36:54 +01:00
|
|
|
return $this->generated;
|
2015-12-09 19:06:04 +01:00
|
|
|
}
|
|
|
|
}
|