PHP Class duncan3dc\Sonos\Tracks\Stream

Inheritance: implements duncan3dc\Sonos\Tracks\UriInterface
Show file Open project: duncan3dc/sonos Class Usage Examples

Protected Properties

Property Type Description
$name string The name of the stream.
$uri string The uri of the stream.

Public Methods

Method Description
__construct ( string $uri, $name = "" ) Create a Stream object.
createFromXml ( duncan3dc\DomParser\XmlElement $xml, Controller $controller ) : static Create a stream from an xml element.
getMetaData ( ) : string Get the metadata xml for this stream.
getName ( ) : string Get the name for this stream.
getTitle ( ) : string Get the name for this stream.
getUri ( ) : string Get the URI for this stream.

Method Details

__construct() public method

Create a Stream object.
public __construct ( string $uri, $name = "" )
$uri string The URI of the stream

createFromXml() public static method

Create a stream from an xml element.
public static createFromXml ( duncan3dc\DomParser\XmlElement $xml, Controller $controller ) : static
$xml duncan3dc\DomParser\XmlElement The xml element representing the track meta data
$controller duncan3dc\Sonos\Controller A controller instance to communicate with
return static

getMetaData() public method

Get the metadata xml for this stream.
public getMetaData ( ) : string
return string

getName() public method

Get the name for this stream.
public getName ( ) : string
return string

getTitle() public method

Get the name for this stream.
public getTitle ( ) : string
return string

getUri() public method

Get the URI for this stream.
public getUri ( ) : string
return string

Property Details

$name protected property

The name of the stream.
protected string $name
return string

$uri protected property

The uri of the stream.
protected string $uri
return string