$controller
$controller : \duncan3dc\Sonos\Interfaces\ControllerInterface
Factory for creating Track instances.
$controller : \duncan3dc\Sonos\Interfaces\ControllerInterface
__construct(\duncan3dc\Sonos\Interfaces\ControllerInterface $controller)
Create an instance of the Factory class.
\duncan3dc\Sonos\Interfaces\ControllerInterface | $controller | A Controller instance to communicate with |
createFromUri(string $uri) : \duncan3dc\Sonos\Interfaces\TrackInterface
Create a new Track instance from a URI.
string | $uri | The URI of the track |
createFromXml(\duncan3dc\DomParser\XmlElement $xml) : \duncan3dc\Sonos\Interfaces\TrackInterface
Create a new Track instance from a URI.
\duncan3dc\DomParser\XmlElement | $xml | The xml element representing the track meta data. |