\duncan3dc\Sonos\Interfaces\TracksFactoryInterface

Factory for creating Track instances.

Summary

Methods
Constants
createFromUri()
createFromXml()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

createFromUri()

createFromUri(string  $uri) : \duncan3dc\Sonos\Interfaces\TrackInterface

Create a new Track instance from a URI.

Parameters

string $uri

The URI of the track

Returns

\duncan3dc\Sonos\Interfaces\TrackInterface

createFromXml()

createFromXml(\duncan3dc\DomParser\XmlElement  $xml) : \duncan3dc\Sonos\Interfaces\TrackInterface

Create a new Track instance from a URI.

Parameters

\duncan3dc\DomParser\XmlElement $xml

The xml element representing the track meta data.

Returns

\duncan3dc\Sonos\Interfaces\TrackInterface