2017-03-22 18:10:21 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace ManiaControl\Callbacks\Structures\ManiaPlanet;
|
|
|
|
|
2017-03-22 18:31:53 +01:00
|
|
|
use ManiaControl\Callbacks\Structures\BaseStructure;
|
2017-03-22 18:10:21 +01:00
|
|
|
use ManiaControl\ManiaControl;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Structure Class for the List 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 CallbacksListStructure extends BaseStructure {
|
2017-03-22 18:10:21 +01:00
|
|
|
/** @var string $responseId */
|
2017-03-23 20:39:32 +01:00
|
|
|
public $responseId;
|
2017-03-22 18:10:21 +01:00
|
|
|
/** @var array $callbacks */
|
2017-03-23 20:39:32 +01:00
|
|
|
public $callbacks;
|
2017-03-22 18:10:21 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Construct a new Armor Empty Structure
|
|
|
|
*
|
|
|
|
* @param ManiaControl $maniaControl
|
|
|
|
* @param array $data
|
|
|
|
*/
|
|
|
|
public function __construct(ManiaControl $maniaControl, $data) {
|
2017-03-23 20:39:32 +01:00
|
|
|
parent::setManiaControl($maniaControl);
|
|
|
|
parent::setJson($data);
|
2017-03-22 18:10:21 +01:00
|
|
|
|
2017-03-23 20:39:32 +01:00
|
|
|
$this->responseId = $this->getJson()->responseid;
|
|
|
|
$this->callbacks = $this->getJson()->callbacks;
|
2017-03-22 18:10:21 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function getResponseId() {
|
|
|
|
return $this->responseId;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return array
|
|
|
|
*/
|
|
|
|
public function getCallbacks() {
|
|
|
|
return $this->callbacks;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|