src/Model/AlbumInfo.php
private static function createTracksFromApi(array $data): array
    {
        $tracks = [];

        if (\array_key_exists('tracks', $data) && \array_key_exists('track', $data['tracks'])) {
            foreach ((array) $data['tracks']['track'] as $track) {
                $tracks[] = Song::fromApi($track);
            }
        }

        return $tracks;
    }
private static function createTracksFromApi(array $data): array
    {
        $tracks = [];

        if (\array_key_exists('tracks', $data) && \array_key_exists('track', $data['tracks'])) {
            foreach ((array) $data['tracks']['track'] as $track) {
                $tracks[] = Song::fromApi($track);
            }
        }

        return $tracks;
    }
@param array $data

@return array