2017-03-22 18:10:21 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace ManiaControl\Callbacks\Structures\Trackmania;
|
|
|
|
|
|
|
|
|
2017-03-22 18:31:53 +01:00
|
|
|
use ManiaControl\Callbacks\Structures\BaseStructure;
|
2017-03-23 20:52:23 +01:00
|
|
|
use ManiaControl\ManiaControl;
|
2017-03-22 18:31:53 +01:00
|
|
|
|
2017-03-23 20:52:23 +01:00
|
|
|
/**
|
|
|
|
* Structure Class for the Default Event Structure 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-22 18:31:53 +01:00
|
|
|
class DefaultEventStructure extends BaseStructure {
|
2017-03-24 22:49:43 +01:00
|
|
|
public $time;
|
|
|
|
public $type;
|
|
|
|
|
2017-03-23 20:52:23 +01:00
|
|
|
public function __construct(ManiaControl $maniaControl, $data) {
|
2017-03-23 21:01:44 +01:00
|
|
|
parent::__construct($maniaControl, $data);
|
2017-03-22 18:10:21 +01:00
|
|
|
|
2017-03-24 22:49:43 +01:00
|
|
|
$this->time = $this->getPlainJsonObject()->time;
|
|
|
|
$this->type = $this->getPlainJsonObject()->type;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return int
|
|
|
|
*/
|
|
|
|
public function getTime() {
|
|
|
|
return $this->time;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function getType() {
|
|
|
|
return $this->type;
|
2017-03-23 20:52:23 +01:00
|
|
|
}
|
2017-03-22 18:10:21 +01:00
|
|
|
}
|