7a7826b4b6
to have this mc version working you need to update the dedicated server scripts
42 lines
989 B
PHP
42 lines
989 B
PHP
<?php
|
|
|
|
namespace ManiaControl\Callbacks\Structures\ManiaPlanet;
|
|
|
|
|
|
use ManiaControl\Callbacks\Structures\Common\BaseStructure;
|
|
use ManiaControl\Callbacks\Structures\Common\BaseTimeStructure;
|
|
use ManiaControl\ManiaControl;
|
|
|
|
/**
|
|
* Structure Class for the Default Start End Callbacks
|
|
*
|
|
* @api
|
|
* @author ManiaControl Team <mail@maniacontrol.com>
|
|
* @copyright 2014-2017 ManiaControl Team
|
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
|
*/
|
|
class StartEndStructure extends BaseTimeStructure {
|
|
private $count;
|
|
|
|
/**
|
|
* StartEndStructure constructor.
|
|
*
|
|
* @param \ManiaControl\ManiaControl $maniaControl
|
|
* @param $data
|
|
*/
|
|
public function __construct(ManiaControl $maniaControl, $data) {
|
|
parent::__construct($maniaControl, $data);
|
|
|
|
$this->count = $this->getPlainJsonObject()->count;
|
|
}
|
|
|
|
/**
|
|
* Get the Count of this Section
|
|
*
|
|
* @api
|
|
* @return int
|
|
*/
|
|
public function getCount() {
|
|
return $this->count;
|
|
}
|
|
} |