2015-12-09 19:06:04 +01:00
|
|
|
<?php class Snapshot
|
|
|
|
{
|
|
|
|
|
|
|
|
/** @var String */
|
|
|
|
private $identifier;
|
|
|
|
|
|
|
|
/** @var Message[] */
|
|
|
|
private $messages;
|
|
|
|
|
2016-06-23 21:41:46 +02:00
|
|
|
/** @var User[] */
|
2015-12-09 19:06:04 +01:00
|
|
|
private $players; // String UUID as Key
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Snapshot constructor.
|
|
|
|
* @param String $identifier
|
|
|
|
* @param Message[] $messages
|
2016-06-23 21:41:46 +02:00
|
|
|
* @param User[] $players
|
2015-12-09 19:06:04 +01:00
|
|
|
*/
|
2016-06-23 21:41:46 +02:00
|
|
|
function __construct($identifier, $messages, $players)
|
2015-12-09 19:06:04 +01:00
|
|
|
{
|
|
|
|
$this->identifier = $identifier;
|
|
|
|
$this->messages = $messages;
|
|
|
|
$this->players = $players;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return String
|
|
|
|
*/
|
|
|
|
public function getIdentifier()
|
|
|
|
{
|
|
|
|
return $this->identifier;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return Message[]
|
|
|
|
*/
|
|
|
|
public function getMessages()
|
|
|
|
{
|
|
|
|
return $this->messages;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2016-06-23 21:41:46 +02:00
|
|
|
* @return User[]
|
2015-12-09 19:06:04 +01:00
|
|
|
*/
|
|
|
|
public function getPlayers()
|
|
|
|
{
|
|
|
|
return $this->players;
|
|
|
|
}
|
|
|
|
}
|