<?php

declare(strict_types=1);

namespace {{ tree.getFullNameSpaceOfFile(file, entity, action) }};

use App\Base\ReadPageRequest;
use Illuminate\Validation\Rule;

class {{ helper.getClassName(file, entity, action) }} extends ReadPageRequest
{
    public static function getRuleMap(): array
    {
        /** @phpstan-ignore-next-line */
        return [
{% for column in columnzz %}
            '{{ column.alias }}' => [{% for constraint in column.constraintzz %}
                {{ helper.makeConstraintText(constraint) }},{% endfor %}
            ],
{% endfor %}
{% for parameter in parameterzz %}
            '{{ parameter.alias }}' => [{% for constraint in parameter.constraintzz %}
                {{ helper.makeConstraintText(constraint) }},{% endfor %}
            ],
{% endfor %}
        ];
    }
}
