<?php

declare(strict_types=1);

namespace Autogedal\FeedMonitor\Model\Fetch;

/**
 * Expected format of a feed: turns the raw content into rows keyed by product code, or says why it cannot.
 */
interface FeedFormatInterface
{
    /**
     * @throws InvalidFeedException when the content is not in the expected format
     */
    public function parse(string $content): ParsedFeed;
}
