<?php


namespace App\Validations;


class AgendamentoValidation
{
    static public function register () : array
    {
        return [
            "id_agenda" => [
                'label' => 'Agenda',
                'rules' => 'trim|required|is_natural',
            ],
            "id_pet" => [
                'label' => 'Pet',
                'rules' => 'trim|required|is_natural',
            ],
            "id_cliente" => [
                'label' => 'Cliente',
                'rules' => 'trim|required|is_natural',
            ],
            "id_paciente" => [
                'label' => 'Paciente',
                'rules' => 'trim|required|is_natural',
            ],
            "id_procedimento" => [
                'label' => 'Procedimento',
                'rules' => 'trim|required|is_natural',
            ],
        ];
    }

    static public function update() : array
    {
        return [
            "id_agenda" => [
                'label' => 'Agenda',
                'rules' => 'trim|is_natural',
            ],
            "id_pet" => [
                'label' => 'Pet',
                'rules' => 'trim|required|is_natural',
            ],
            "id_cliente" => [
                'label' => 'Cliente',
                'rules' => 'trim|is_natural',
            ],
            "id_paciente" => [
                'label' => 'Paciente',
                'rules' => 'trim|is_natural',
            ],
            "id_procedimento" => [
                'label' => 'Procedimento',
                'rules' => 'trim|is_natural',
            ],
            "atrasado" => [
                'label' => 'Atrasado',
                'rules' => 'trim|in_list[0,1]',
            ],
        ];
    }

    static public function registerVisaoCliente (): array
    {
        return [
            "id_agenda" => [
                'label' => 'Agenda',
                'rules' => 'trim|required|is_natural',
            ],
            "id_cliente" => [
                'label' => 'Cliente',
                'rules' => 'trim|required|is_natural',
            ],
            "id_paciente" => [
                'label' => 'Paciente',
                'rules' => 'trim|required|is_natural',
            ],
        ];
    }
}