Mineplex2018-withcommit/Plugins/Mineplex.ReportServer/web/report.php

74 lines
1.3 KiB
PHP
Raw Normal View History

<?php class Report
{
/** @var Int */
private $id;
2015-12-07 18:05:58 +01:00
/** @var Player|Null */
private $handler;
2015-12-16 01:22:55 +01:00
/** @var Player */
private $suspect;
/** @var SplObjectStorage */
private $reporters;
/** @var Int */
private $category;
/**
* Report constructor.
* @param Int $id
* @param Player|Null $handler
2015-12-16 01:22:55 +01:00
* @param Player $suspect
* @param SplObjectStorage $reporters
* @param Int $category
*/
function Report($id, $handler, $suspect, $reporters, $category)
{
$this->id = $id;
$this->handler = $handler;
$this->suspect = $suspect;
$this->reporters = $reporters;
$this->category = $category;
}
/**
* @return Int
*/
public function getId()
{
return $this->id;
}
/**
* @return Player|Null
*/
public function getHandler()
{
return $this->handler;
}
/**
2015-12-16 01:22:55 +01:00
* @return Player
*/
public function getSuspect()
{
return $this->suspect;
}
/**
* @return SplObjectStorage
*/
public function getReporters()
{
return $this->reporters;
}
/**
* @return Int
*/
public function getCategory()
{
return $this->category;
}
}