<?php
/*
 * Copyright 2026 Alessandro Chiapparini <sprint_planer_web@chiapparini.org>
 * SPDX-License-Identifier: Apache-2.0
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * See the LICENSE file in the project root for the full license text.
 */

declare(strict_types=1);

namespace App\Domain\Import;

/**
 * Outcome of committing one ParsedSheet, returned from SprintImporter::commit
 * so the controller can compose a flash summary.
 */
final class ImportResult
{
    /**
     * @param list<string> $createdWorkers names of workers added to the global Workers table
     * @param list<string> $missingOwners  task-owner names that did not match any worker (silently dropped to "no owner")
     */
    public function __construct(
        public readonly int    $sprintId,
        public readonly string $sprintName,
        public readonly int    $weekCount,
        public readonly int    $workerCount,
        public readonly int    $taskCount,
        public readonly int    $assignmentCellCount,
        public readonly int    $statusCellCount,
        public readonly array  $createdWorkers,
        public readonly array  $missingOwners,
    ) {
    }
}
