<?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;

/**
 * One Arbeitstage-block worker row.
 *
 * `daysPerWeek` is keyed by week sort_order (1-based) for stable cross-
 * referencing into ParsedSheet::$weeks.
 */
final class ParsedWorker
{
    /**
     * @param array<int, float> $daysPerWeek week sortOrder => days
     */
    public function __construct(
        public readonly string $name,
        public readonly array  $daysPerWeek,
        public readonly float  $rtb,
    ) {
    }
}
