<?php

namespace App\Http\Requests\Admin;

use App\Http\Requests\ApiFormRequest;

/**
 * 玩家列表查询请求。
 *
 * @see AdminPlayerIndexController
 */
final class AdminPlayerIndexRequest extends ApiFormRequest
{
    public function authorize(): bool
    {
        return true;
    }

    public function rules(): array
    {
        return [
            'keyword' => ['sometimes', 'string', 'max:128'],
            'status' => ['sometimes', 'integer', 'in:0,1,2'],
        ];
    }
}
