2017-03-22 18:10:21 +01:00
|
|
|
<?php
|
|
|
|
|
2017-03-23 20:52:23 +01:00
|
|
|
namespace ManiaControl\Callbacks\Structures\XmlRpc;
|
2017-03-22 18:10:21 +01:00
|
|
|
|
|
|
|
use ManiaControl\ManiaControl;
|
|
|
|
|
|
|
|
/**
|
2017-04-07 23:03:56 +02:00
|
|
|
* Structure Class for the Method Help Structure Callback
|
2017-03-22 18:10:21 +01:00
|
|
|
*
|
2017-04-07 23:03:56 +02:00
|
|
|
* @api
|
2017-03-22 18:10:21 +01:00
|
|
|
* @author ManiaControl Team <mail@maniacontrol.com>
|
2018-03-27 20:11:40 +02:00
|
|
|
* @copyright 2014-2018 ManiaControl Team
|
2017-03-22 18:10:21 +01:00
|
|
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
|
|
|
*/
|
2017-04-07 23:03:56 +02:00
|
|
|
class MethodHelpStructure extends DocumentationStructure {
|
|
|
|
private $methodName;
|
2017-03-22 18:10:21 +01:00
|
|
|
|
|
|
|
/**
|
2017-03-24 22:49:43 +01:00
|
|
|
* Construct a new Callbacks List Structure
|
2017-03-22 18:10:21 +01:00
|
|
|
*
|
|
|
|
* @param ManiaControl $maniaControl
|
|
|
|
* @param array $data
|
|
|
|
*/
|
|
|
|
public function __construct(ManiaControl $maniaControl, $data) {
|
2017-03-23 21:01:44 +01:00
|
|
|
parent::__construct($maniaControl, $data);
|
2017-03-22 18:10:21 +01:00
|
|
|
|
2017-04-07 23:03:56 +02:00
|
|
|
$this->methodName = $this->getPlainJsonObject()->method;
|
2017-03-22 18:10:21 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2017-04-07 23:03:56 +02:00
|
|
|
* Gets the Name of the Method
|
2017-03-26 12:56:44 +02:00
|
|
|
*
|
2017-04-07 23:03:56 +02:00
|
|
|
* @api
|
|
|
|
* @return mixed
|
2017-03-22 18:10:21 +01:00
|
|
|
*/
|
2017-04-07 23:03:56 +02:00
|
|
|
public function getMethodName() {
|
|
|
|
return $this->methodName;
|
2017-03-22 18:10:21 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|