public function createFromXml(XmlElement $xml): TrackInterface
    {
        $uri = (string) $xml->getTag("res");
        $class = $this->guessTrackClass($uri);

        return $class::createFromXml($xml, $this->controller);
    }
public function createFromXml(XmlElement $xml): TrackInterface
    {
        $uri = (string) $xml->getTag("res");
        $class = $this->guessTrackClass($uri);

        return $class::createFromXml($xml, $this->controller);
    }
public function createFromXml ( XmlElement $ xml ) : TrackInterface { $ uri = ( string ) $ xml -> getTag ( "res" ) ; $ class = $ this -> guessTrackClass ( $ uri ) ; return $ class :: createFromXml ( $ xml , $ this -> controller ) ; }
Create a new Track instance from a URI.

@param XmlElement $xml The xml element representing the track meta data.

@return TrackInterface
Create a new Track instance from a URI .