Mineplex2018-withcommit/Plugins/Mineplex.ReportServer/web/report.php
Keir Nellyer a663cb3e01 Revert "Revert "Report system (version 1)""
This reverts commit d0d2de1e21.

# Conflicts:
#	Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/Clans.java
2016-05-04 15:24:29 +01:00

74 lines
1.3 KiB
PHP

<?php class Report
{
/** @var Int */
private $id;
/** @var String */
private $serverName;
/** @var Player|Null */
private $handler;
/** @var Player */
private $suspect;
/** @var SplObjectStorage */
private $reporters;
/**
* Report constructor.
* @param Int $id
* @param String $serverName
* @param Player|Null $handler
* @param Player $suspect
* @param SplObjectStorage $reporters
*/
function Report($id, $serverName, $handler, $suspect, $reporters)
{
$this->id = $id;
$this->serverName = $serverName;
$this->handler = $handler;
$this->suspect = $suspect;
$this->reporters = $reporters;
}
/**
* @return Int
*/
public function getId()
{
return $this->id;
}
/**
* @return String
*/
public function getServerName()
{
return $this->serverName;
}
/**
* @return Player|Null
*/
public function getHandler()
{
return $this->handler;
}
/**
* @return Player
*/
public function getSuspect()
{
return $this->suspect;
}
/**
* @return SplObjectStorage
*/
public function getReporters()
{
return $this->reporters;
}
}