2013-11-25 00:02:07 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace FML\Types;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Interface for elements with media attributes
|
|
|
|
*
|
|
|
|
* @author steeffeen
|
|
|
|
*/
|
|
|
|
interface Playable {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set data
|
|
|
|
*
|
|
|
|
* @param string $data
|
|
|
|
*/
|
|
|
|
public function setData($data);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set play
|
|
|
|
*
|
|
|
|
* @param bool $play
|
|
|
|
*/
|
|
|
|
public function setPlay($play);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set looping
|
|
|
|
*
|
|
|
|
* @param bool $looping
|
|
|
|
*/
|
|
|
|
public function setLooping($looping);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set music
|
|
|
|
*
|
|
|
|
* @param bool $music
|
|
|
|
*/
|
|
|
|
public function setMusic($music);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set volume
|
|
|
|
*
|
2013-11-28 02:04:06 +01:00
|
|
|
* @param float $volume
|
2013-11-25 00:02:07 +01:00
|
|
|
*/
|
|
|
|
public function setVolume($volume);
|
|
|
|
}
|