TrackManiaControl/core/Callbacks/Structures/ManiaPlanet/StartServerStructure.php

31 lines
740 B
PHP
Raw Normal View History

<?php
namespace ManiaControl\Callbacks\Structures\ManiaPlanet;
use ManiaControl\Callbacks\Structures\BaseStructure;
use ManiaControl\ManiaControl;
2017-03-24 16:49:54 +01:00
/**
* Structure Class for the Default Start Server Callback
*
* @author ManiaControl Team <mail@maniacontrol.com>
* @copyright 2014-2017 ManiaControl Team
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
*/
2017-03-23 20:55:20 +01:00
class StartServerStructure extends BaseStructure {
2017-03-24 16:49:54 +01:00
public $restarted;
public function __construct(ManiaControl $maniaControl, $data) {
2017-03-23 21:01:44 +01:00
parent::__construct($maniaControl, $data);
2017-03-24 16:49:54 +01:00
$this->restarted = $this->getPlainJsonObject()->restarted;
}
2017-03-24 16:49:54 +01:00
/**
* @return mixed
*/
public function getRestarted() {
return $this->restarted;
}
}