Update deprecated constructors to new-style constructors

This commit is contained in:
Keir Nellyer 2016-06-23 14:48:57 +01:00
parent 4606f27408
commit dbf0a79b95
4 changed files with 4 additions and 4 deletions

View File

@ -52,7 +52,7 @@
* @param Message $message * @param Message $message
* @param String $server * @param String $server
*/ */
function Message($sender, $recipients, $dateTime, $type, $message, $server) function __construct($sender, $recipients, $dateTime, $type, $message, $server)
{ {
$this->sender = $sender; $this->sender = $sender;
$this->recipients = $recipients; $this->recipients = $recipients;

View File

@ -19,7 +19,7 @@
* @param String $username * @param String $username
* @param String $rank * @param String $rank
*/ */
function Player($id, $uuid, $username, $rank) function __construct($id, $uuid, $username, $rank)
{ {
$this->id = $id; $this->id = $id;
$this->uuid = $uuid; $this->uuid = $uuid;

View File

@ -23,7 +23,7 @@
* @param SplObjectStorage $reporters * @param SplObjectStorage $reporters
* @param Int $category * @param Int $category
*/ */
function Report($id, $handler, $suspect, $reporters, $category) function __construct($id, $handler, $suspect, $reporters, $category)
{ {
$this->id = $id; $this->id = $id;
$this->handler = $handler; $this->handler = $handler;

View File

@ -20,7 +20,7 @@
* @param Player[] $players * @param Player[] $players
* @param DateTime $generated * @param DateTime $generated
*/ */
function Snapshot($identifier, $messages, $players, $generated) function __construct($identifier, $messages, $players, $generated)
{ {
$this->identifier = $identifier; $this->identifier = $identifier;
$this->messages = $messages; $this->messages = $messages;