<?php

namespace App\Http\Requests\Grading;

use App\Http\Requests\ApiFormRequest;

class PlacementRequest extends ApiFormRequest
{
    public function authorize(): bool
    {
        return true;
    }

    public function rules(): array
    {
        return [
            'class_section_id' => ['nullable', 'integer', 'min:1'],
            'school_year' => ['required', 'string', 'max:50'],
            'placement_test' => ['nullable', 'string', 'max:100'],
            'open' => ['nullable', 'string', 'max:5'],
        ];
    }
}
