TrackManiaControl/core/Callbacks/Structures/Common/CommonDefaultEventStructure.php

43 lines
1011 B
PHP
Raw Normal View History

2017-04-14 16:30:33 +02:00
<?php
namespace ManiaControl\Callbacks\Structures\ShootMania;
use ManiaControl\Callbacks\Structures\Common\BaseStructure;
use ManiaControl\Callbacks\Structures\Common\BaseTimeStructure;
use ManiaControl\ManiaControl;
/**
* Common Structure Class for the Default Event Structure Callback
*
* @api
* @author ManiaControl Team <mail@maniacontrol.com>
2020-01-22 10:39:35 +01:00
* @copyright 2014-2020 ManiaControl Team
2017-04-14 16:30:33 +02:00
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
*/
class CommonDefaultEventStructure extends BaseTimeStructure {
private $type;
/**
* OnDefaultEventStructure constructor.
*
* @param \ManiaControl\ManiaControl $maniaControl
* @param $data
*/
public function __construct(ManiaControl $maniaControl, $data) {
parent::__construct($maniaControl, $data);
$this->type = $this->getPlainJsonObject()->type;
}
/**
* Returns the type of event
*
* @api
* @return string
*/
public function getType() {
return $this->type;
}
}