1: <?php
2: /**
3: * @copyright Copyright (c) 2009-2012 NADEO (http://www.nadeo.com)
4: * @license http://www.gnu.org/licenses/lgpl.html LGPL License 3
5: * @version $Revision: 425 $:
6: * @author $Author: melot.philippe $:
7: * @date $Date: 2012-07-18 12:36:36 +0200 (mer., 18 juil. 2012) $:
8: */
9:
10: namespace DedicatedApi\Structures;
11:
12: class ScriptInfo extends AbstractStructure
13: {
14:
15: public $name;
16: public $compatibleMapTypes;
17: public $description;
18: public $version;
19: public $paramDescs = array();
20:
21: static public function fromArray($array)
22: {
23: $object = parent::fromArray($array);
24:
25: if($object->paramDescs)
26: {
27: $object->paramDescs = ScriptSettings::fromArrayOfArray($object->paramDescs);
28: }
29: return $object;
30: }
31:
32: }
33:
34: ?>