* @copyright 2014-2020 ManiaControl Team * @license http://www.gnu.org/licenses/ GNU General Public License, Version 3 */ class StartServerStructure extends BaseStructure { private $restarted; /** * StartServerStructure constructor. * * @param \ManiaControl\ManiaControl $maniaControl * @param $data */ public function __construct(ManiaControl $maniaControl, $data) { parent::__construct($maniaControl, $data); $this->restarted = $this->getPlainJsonObject()->restarted; } /** * Flag if the Server got Restarted * * @api * @return mixed */ public function getRestarted() { return $this->restarted; } }