private function guessTrackClass(string $uri): string
    {
        $classes = [
            Spotify::class,
            Google::class,
            GoogleUnlimited::class,
            Deezer::class,
            Stream::class,
        ];
        foreach ($classes as $class) {
            if (substr($uri, 0, strlen($class::PREFIX)) === $class::PREFIX) {
                return $class;
            }
        }

        return Track::class;
    }
private function guessTrackClass(string $uri): string
    {
        $classes = [
            Spotify::class,
            Google::class,
            GoogleUnlimited::class,
            Deezer::class,
            Stream::class,
        ];
        foreach ($classes as $class) {
            if (substr($uri, 0, strlen($class::PREFIX)) === $class::PREFIX) {
                return $class;
            }
        }

        return Track::class;
    }
private function guessTrackClass ( string $ uri ) : string { $ classes = [ Spotify :: class , Google :: class , GoogleUnlimited :: class , Deezer :: class , Stream :: class , ] ; foreach ( $ classes as $ class ) { if ( substr ( $ uri , 0 , strlen ( $ class :: PREFIX ) ) === $ class :: PREFIX ) { return $ class ; } } return Track :: class ; }
Get the name of the Track class that represents a URI.

@param string $uri The URI of the track

@return string
Get the name of the Track class that represents a URI .