TrackManiaControl/core/Callbacks/Structures/XmlRpc/CallbackHelpStructure.php

40 lines
884 B
PHP
Raw Normal View History

<?php
namespace ManiaControl\Callbacks\Structures\XmlRpc;
use ManiaControl\ManiaControl;
/**
* Structure Class for the CallbackHelp Structure Callback
*
* @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 CallbackHelpStructure extends DocumentationStructure {
private $callbackName;
/**
2017-03-24 22:49:43 +01:00
* Construct a new Callbacks List Structure
*
* @param ManiaControl $maniaControl
* @param array $data
*/
public function __construct(ManiaControl $maniaControl, $data) {
2017-03-23 21:01:44 +01:00
parent::__construct($maniaControl, $data);
$this->callbackName = $this->getPlainJsonObject()->callback;
}
/**
* Gets the Name of the Method
*
* @api
* @return mixed
*/
public function getMethodName() {
return $this->callbackName;
}
}