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

        return new self(
            $data['name'],
            $data['mbid'] ?? null,
            $images,
            $data['url'] ?? null,
            isset($data['playcount']) ? (int) $data['playcount'] : 0,
            $data['bio']['summary'] ?? null,
            $data['bio']['content'] ?? null,
            isset($data['tagcount']) ? (int) $data['tagcount'] : 0,
            $tags
        );
    }
public static function fromApi(array $data): self
    {
        $images = self::createImagesFromApi($data);
        $tags   = self::createTagsFromApi($data);

        return new self(
            $data['name'],
            $data['mbid'] ?? null,
            $images,
            $data['url'] ?? null,
            isset($data['playcount']) ? (int) $data['playcount'] : 0,
            $data['bio']['summary'] ?? null,
            $data['bio']['content'] ?? null,
            isset($data['tagcount']) ? (int) $data['tagcount'] : 0,
            $tags
        );
    }
@param array $data

@return ArtistInfo