<?php

declare(strict_types=1);

namespace App\Http\Requests\Settings;

use Illuminate\Foundation\Http\FormRequest;

class UpdateContentPreferencesRequest extends FormRequest
{
    public function authorize(): bool
    {
        return true;
    }

    public function rules(): array
    {
        return [
            'mature_content_visibility' => ['required', 'in:hide,blur,show'],
            'mature_content_warning_enabled' => ['required', 'boolean'],
        ];
    }
}