Update deprecated constructors to new-style constructors
This commit is contained in:
parent
4606f27408
commit
dbf0a79b95
@ -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;
|
||||||
|
@ -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;
|
||||||
|
@ -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;
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user