src/Model/AlbumInfo.php
public static function fromApi(array $data): self
    {
        $images = self::createImagesFromApi($data);
        $tracks = self::createTracksFromApi($data);
        $tags   = self::createTagsFromApi($data);

        return new self(
            $data['name'],
            new Artist($data['artist'], null, [], null),
            $data['mbid'] ?? null,
            $data['url'] ?? null,
            $images,
            $data['listeners'] ?? 0,
            $data['playcount'] ?? 0,
            $tracks,
            $tags,
            $data['wiki']['summary'] ?? null
        );
    }
public static function fromApi(array $data): self
    {
        $images = self::createImagesFromApi($data);
        $tracks = self::createTracksFromApi($data);
        $tags   = self::createTagsFromApi($data);

        return new self(
            $data['name'],
            new Artist($data['artist'], null, [], null),
            $data['mbid'] ?? null,
            $data['url'] ?? null,
            $images,
            $data['listeners'] ?? 0,
            $data['playcount'] ?? 0,
            $tracks,
            $tags,
            $data['wiki']['summary'] ?? null
        );
    }
@param array $data

@return AlbumInfo