<?php

declare(strict_types=1);

namespace Autogedal\FeedMonitor\Model\Fetch;

/**
 * Rows of a feed by product code, and how many rows were left out because they did not match the format.
 */
class ParsedFeed
{
    /**
     * @param array<string, array<int|string, mixed>> $rows
     */
    public function __construct(
        private readonly array $rows,
        private readonly int $skipped = 0
    ) {
    }

    /**
     * @return array<string, array<int|string, mixed>>
     */
    public function getRows(): array
    {
        return $this->rows;
    }

    public function getSkipped(): int
    {
        return $this->skipped;
    }
}
