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

33 lines
759 B
PHP
Raw Normal View History

2017-03-24 17:08:27 +01:00
<?php
namespace ManiaControl\Callbacks\Structures\ManiaPlanet;
use ManiaControl\Callbacks\Structures\Common\BaseStructure;
2017-03-24 17:08:27 +01:00
use ManiaControl\ManiaControl;
/**
* Structure Class for the Default Start End Callbacks
*
* @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 BaseStructure {
private $count;
2017-03-24 17:08:27 +01:00
public function __construct(ManiaControl $maniaControl, $data) {
parent::__construct($maniaControl, $data);
$this->count = $this->getPlainJsonObject()->count;
}
/**
* Get the Count of this Section
*
* @return int
2017-03-24 17:08:27 +01:00
*/
public function getCount() {
return $this->count;
}
}