/** * Create a Deezer track object. * * @param string $uri The URI of the track or the Deezer ID of the track */ public function __construct($uri) { # If this is a Deezer track ID and not a URI then convert it to a URI now if (substr($uri, 0, strlen(self::PREFIX)) !== self::PREFIX) { $uri = self::PREFIX . urlencode(":{$uri}.mp3"); } parent::__construct($uri); }
/** * Create a Track object. */ public function __construct($uri = null) { parent::__construct($uri); }