<?php

namespace Functional\Tracking\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

/**
 * Validation de la complétion d'une séance (POST /api/sessions/{session}/complete).
 */
class CompleteWorkoutSessionRequest extends FormRequest
{
    public function authorize(): bool
    {
        return true;
    }

    public function rules(): array
    {
        return [
            'ended_at' => ['nullable', 'date'],
        ];
    }
}
