a663cb3e01
This reverts commit d0d2de1e21
.
# Conflicts:
# Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/Clans.java
62 lines
1.1 KiB
PHP
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;
|
|
}
|
|
} |