* @copyright 2014-2017 ManiaControl Team * @license http://www.gnu.org/licenses/ GNU General Public License, Version 3 */ class CallbacksListStructure extends BaseStructure { /** @var string $responseId */ private $responseId; /** @var array $callbacks */ private $callbacks; /** * Construct a new Armor Empty Structure * * @param ManiaControl $maniaControl * @param array $data */ public function __construct(ManiaControl $maniaControl, $data) { $this->maniaControl = $maniaControl; //Not tested yet, TODO test $json = json_decode($data); $this->responseId = $json->responseId; $this->callbacks = $json->callbacks; } /** * @return string */ public function getResponseId() { return $this->responseId; } /** * @return array */ public function getCallbacks() { return $this->callbacks; } }