TrackManiaControl/libs/Maniaplanet/DedicatedServer/Structures/ScriptInfo.php

36 lines
797 B
PHP
Raw Permalink Normal View History

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[] */
2024-08-25 22:30:06 +02:00
public $paramDescs = [];
2014-05-08 19:38:15 +02:00
/** @var Command[] */
2024-08-25 22:30:06 +02:00
public $commandDescs = [];
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;
}
}