<?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 (task, worker) cell from the Tasks block.
 *
 * `status` is one of TaskAssignment::STATUS_*, derived from the cell fill
 * colour by XlsxColorClassifier. `argbHex` is kept around for the preview
 * UI (so the user can sanity-check the colour mapping per cell if they
 * want to drill in).
 */
final class ParsedAssignment
{
    public function __construct(
        public readonly string  $workerName,
        public readonly float   $days,
        public readonly string  $status,
        public readonly ?string $argbHex = null,
    ) {
    }
}
