2014-01-16 16:56:24 +01:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* ManiaPlanet dedicated server Xml-RPC client
|
|
|
|
*
|
|
|
|
* @license http://www.gnu.org/licenses/lgpl.html LGPL License 3
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace Maniaplanet\DedicatedServer\Structures;
|
|
|
|
|
|
|
|
class ScriptInfo extends AbstractStructure
|
|
|
|
{
|
2014-05-08 19:38:15 +02:00
|
|
|
/** @var string */
|
2014-01-16 16:56:24 +01:00
|
|
|
public $name;
|
2014-05-08 19:38:15 +02:00
|
|
|
/** @var string */
|
2014-01-16 16:56:24 +01:00
|
|
|
public $compatibleMapTypes;
|
2014-05-08 19:38:15 +02:00
|
|
|
/** @var string */
|
2014-01-16 16:56:24 +01:00
|
|
|
public $description;
|
2014-05-08 19:38:15 +02:00
|
|
|
/** @var string */
|
2014-01-16 16:56:24 +01:00
|
|
|
public $version;
|
2014-05-08 19:38:15 +02:00
|
|
|
/** @var ScriptSettings[] */
|
2014-01-16 16:56:24 +01:00
|
|
|
public $paramDescs = array();
|
2014-05-08 19:38:15 +02:00
|
|
|
/** @var Command[] */
|
2014-01-20 09:24:17 +01:00
|
|
|
public $commandDescs = array();
|
2014-01-16 16:56:24 +01:00
|
|
|
|
2014-06-12 15:39:50 +02:00
|
|
|
/**
|
|
|
|
* @return ScriptInfo
|
|
|
|
*/
|
|
|
|
public static function fromArray($array)
|
2014-01-16 16:56:24 +01:00
|
|
|
{
|
|
|
|
$object = parent::fromArray($array);
|
2014-05-08 19:38:15 +02:00
|
|
|
$object->paramDescs = ScriptSettings::fromArrayOfArray($object->paramDescs);
|
|
|
|
$object->commandDescs = Command::fromArrayOfArray($object->commandDescs);
|
2014-01-16 16:56:24 +01:00
|
|
|
return $object;
|
|
|
|
}
|
|
|
|
}
|