PHP Class duncan3dc\Sonos\Tracks\Stream

Inheritance: implements duncan3dc\Sonos\Tracks\UriInterface
Afficher le fichier Open project: duncan3dc/sonos Class Usage Examples

Protected Properties

Свойство Type Description
$name string The name of the stream.
$uri string The uri of the stream.

Méthodes publiques

Méthode 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 méthode

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

createFromXml() public static méthode

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
Résultat static

getMetaData() public méthode

Get the metadata xml for this stream.
public getMetaData ( ) : string
Résultat string

getName() public méthode

Get the name for this stream.
public getName ( ) : string
Résultat string

getTitle() public méthode

Get the name for this stream.
public getTitle ( ) : string
Résultat string

getUri() public méthode

Get the URI for this stream.
public getUri ( ) : string
Résultat string

Property Details

$name protected_oe property

The name of the stream.
protected string $name
Résultat string

$uri protected_oe property

The uri of the stream.
protected string $uri
Résultat string