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

29 lines
530 B
PHP
Raw 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
*/
2014-05-08 19:38:15 +02:00
2014-01-16 16:56:24 +01:00
namespace Maniaplanet\DedicatedServer\Structures;
class Music extends AbstractStructure
{
2014-05-08 19:38:15 +02:00
/** var bool */
2014-01-16 16:56:24 +01:00
public $override;
2014-05-08 19:38:15 +02:00
/** var string */
public $url;
/** var string */
2014-01-16 16:56:24 +01:00
public $file;
2014-06-12 15:39:50 +02:00
/**
* @return Music
*/
public static function fromArray($array)
{
$object = parent::fromArray($array);
$object->file = str_replace("\xEF\xBB\xBF", '', $object->file);
return $object;
}
2014-05-08 19:38:15 +02:00
}