<?php

namespace App\Http\Controllers\Owner\DefinedService\Dto;

use App\Modules\DefinedService\DefinedService\Domain\DefinedServiceStatus;

class DefinedServiceInsertDTO
{

    public static function validateData()
    {
        return [
            'DefinedService_Name' => 'required|string|max:250',
            'DefinedService_Status' => 'required|in:' . implode(',', DefinedServiceStatus::validValues()),
            'Id_TypeProvider' => 'required|int',
            'Id_CategoryDefinedService' => 'required|int',
            'Id_TypeDefinedService' => 'required|int',
            'Id_Route' => 'required|int',
            'Id_Tour' => 'required|int',
        ];
    }

    public function __construct(
        public string $DefinedService_Name,
        public int $DefinedService_Status,
        public int $Id_TypeProvider,
        public int $Id_CategoryDefinedService,
        public int $Id_TypeDefinedService,
        public int $Id_Route,
        public int $Id_Tour
    ) {}
}
