<?php

namespace Services\dtos;

class AttributeDto
{
    public readonly string $id;
    public readonly ?string $slug;
    public readonly string $name;

    /* @var string[] $options */
    public array $options;

    public readonly bool $variation;

    public function __construct(string $id, string $name, array $options, bool $variation, ?string $slug = null)
    {
        $this->id = $id;
        $this->name = $name;
        $this->options = $options;
        $this->variation = $variation;
        $this->slug = $slug;
    }
}