TrackManiaControl/application/core/FML/Types/Playable.php

60 lines
1.0 KiB
PHP
Raw Normal View History

<?php
namespace FML\Types;
/**
2014-01-12 00:51:46 +01:00
* Interface for Elements with Media Attributes
*
* @author steeffeen
*/
interface Playable {
/**
2013-12-31 02:55:19 +01:00
* Set Data
*
2014-01-12 00:51:46 +01:00
* @param string $data Media Url
2014-01-21 20:30:40 +01:00
* @return \FML\Types\Playable
*/
public function setData($data);
2014-01-19 19:30:21 +01:00
/**
* Set Data Id to use from the Dico
*
* @param string $dataId
2014-01-21 20:30:40 +01:00
* @return \FML\Types\Playable
2014-01-19 19:30:21 +01:00
*/
public function setDataId($dataId);
/**
2013-12-31 02:55:19 +01:00
* Set Play
*
2014-01-12 00:51:46 +01:00
* @param bool $play Whether the Control should start playing automatically
2014-01-21 20:30:40 +01:00
* @return \FML\Types\Playable
*/
public function setPlay($play);
/**
2013-12-31 02:55:19 +01:00
* Set Looping
*
2014-01-12 00:51:46 +01:00
* @param bool $looping Whether the Control should play looping
2014-01-21 20:30:40 +01:00
* @return \FML\Types\Playable
*/
public function setLooping($looping);
/**
2013-12-31 02:55:19 +01:00
* Set Music
*
2014-01-12 00:51:46 +01:00
* @param bool $music Whether the Control represents Background Music
2014-01-21 20:30:40 +01:00
* @return \FML\Types\Playable
*/
public function setMusic($music);
/**
2013-12-31 02:55:19 +01:00
* Set Volume
*
2014-01-12 00:51:46 +01:00
* @param float $volume Media Volume
2014-01-21 20:30:40 +01:00
* @return \FML\Types\Playable
*/
public function setVolume($volume);
}