59 lines
1.1 KiB
PHP
59 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 Int */
|
|
private $timeGenerated;
|
|
|
|
/**
|
|
* Snapshot constructor.
|
|
* @param String $identifier
|
|
* @param Message[] $messages
|
|
* @param Player[] $players
|
|
* @param Int $timeGenerated
|
|
*/
|
|
function Snapshot($identifier, $messages, $players, $timeGenerated)
|
|
{
|
|
$this->identifier = $identifier;
|
|
$this->messages = $messages;
|
|
$this->players = $players;
|
|
$this->timeGenerated = $timeGenerated;
|
|
}
|
|
|
|
/**
|
|
* @return String
|
|
*/
|
|
public function getIdentifier()
|
|
{
|
|
return $this->identifier;
|
|
}
|
|
|
|
/**
|
|
* @return Message[]
|
|
*/
|
|
public function getMessages()
|
|
{
|
|
return $this->messages;
|
|
}
|
|
|
|
/**
|
|
* @return Player[]
|
|
*/
|
|
public function getPlayers()
|
|
{
|
|
return $this->players;
|
|
}
|
|
|
|
public function getTimeGenerated()
|
|
{
|
|
return $this->timeGenerated;
|
|
}
|
|
} |