<?php

namespace App\Http\Requests\Api\V1\Product\Review;

use Illuminate\Foundation\Http\FormRequest;

class ProductReviewUpdate extends FormRequest
{
    /**
     * Get the validation rules that apply to the request.
     *
     * @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
     */
    public function rules(): array
    {
        return [
            'rating' => ['required', 'numeric', 'max:5'],
            'title' => ['required', 'string', 'max:255'],
            'content' => ['nullable', 'string', 'max:255'],
        ];
    }
}
