<?php


namespace App\Validations;


class ClassificacaoRiscoValidation
{
    static public function register () : array {
        return [
            "descricao" => [
                'label' => 'Descricao',
                'rules' => 'required|trim'
            ],
            "cor" => [
                'label' => 'Cor',
                'rules' => 'required|trim'
            ],
            "id_unidade" => [
                'label' => 'Unidade',
                'rules' => 'required|trim'
            ],
            "valor" => [
                'label' => 'Valor',
                'rules' => 'required|trim'
            ],
        ];
    }

    static public function update () : array {
        return [
            "descricao" => [
                'label' => 'Descricao',
                'rules' => 'required|trim'
            ],
            "cor" => [
                'label' => 'Cor',
                'rules' => 'required|trim'
            ],
            "id_unidade" => [
                'label' => 'Unidade',
                'rules' => 'required|trim'
            ],
            "valor" => [
                'label' => 'Valor',
                'rules' => 'required|trim'
            ],
        ];
    }
}