<?php

namespace App\DTOs\SuperAdmin;

class TemplateSectionDto
{
    public int $id;
    public string $title;
    public int $order;

    /** @var array<int> $rules */
    public array $rules;

    public function __construct(array $data)
    {
        $this->id = $data['id'];
        $this->title = $data['title'];
        $this->order = $data['order'];
        $this->rules = $data['rules'] ?? [];
    }
}