Update deprecated constructors to new-style constructors
This commit is contained in:
parent
4606f27408
commit
dbf0a79b95
@ -52,7 +52,7 @@
|
||||
* @param Message $message
|
||||
* @param String $server
|
||||
*/
|
||||
function Message($sender, $recipients, $dateTime, $type, $message, $server)
|
||||
function __construct($sender, $recipients, $dateTime, $type, $message, $server)
|
||||
{
|
||||
$this->sender = $sender;
|
||||
$this->recipients = $recipients;
|
||||
|
@ -19,7 +19,7 @@
|
||||
* @param String $username
|
||||
* @param String $rank
|
||||
*/
|
||||
function Player($id, $uuid, $username, $rank)
|
||||
function __construct($id, $uuid, $username, $rank)
|
||||
{
|
||||
$this->id = $id;
|
||||
$this->uuid = $uuid;
|
||||
|
@ -23,7 +23,7 @@
|
||||
* @param SplObjectStorage $reporters
|
||||
* @param Int $category
|
||||
*/
|
||||
function Report($id, $handler, $suspect, $reporters, $category)
|
||||
function __construct($id, $handler, $suspect, $reporters, $category)
|
||||
{
|
||||
$this->id = $id;
|
||||
$this->handler = $handler;
|
||||
|
@ -20,7 +20,7 @@
|
||||
* @param Player[] $players
|
||||
* @param DateTime $generated
|
||||
*/
|
||||
function Snapshot($identifier, $messages, $players, $generated)
|
||||
function __construct($identifier, $messages, $players, $generated)
|
||||
{
|
||||
$this->identifier = $identifier;
|
||||
$this->messages = $messages;
|
||||
|
Loading…
Reference in New Issue
Block a user