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

40 lines
873 B
PHP
Raw Normal View History

<?php
namespace ManiaControl\Callbacks\Structures\XmlRpc;
use ManiaControl\ManiaControl;
/**
* Structure Class for the Method Help Structure Callback
*
* @api
* @author ManiaControl Team <mail@maniacontrol.com>
2018-03-27 20:11:40 +02:00
* @copyright 2014-2018 ManiaControl Team
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
*/
class MethodHelpStructure extends DocumentationStructure {
private $methodName;
/**
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->methodName = $this->getPlainJsonObject()->method;
}
/**
* Gets the Name of the Method
*
* @api
* @return mixed
*/
public function getMethodName() {
return $this->methodName;
}
}