<?php

namespace App\Modules\HR\Assets\DTOs;

final readonly class AssetWriteData
{
    /** @param array<string, mixed> $values */
    public function __construct(public array $values) {}

    /** @param array<string, mixed> $data */
    public static function fromValidated(array $data): self
    {
        return new self($data);
    }

    /** @return array<string, mixed> */
    public function toArray(): array
    {
        return $this->values;
    }
}
