<?php

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

use App\Modules\DefinedService\Location\Domain\LocationOnlyHotels;

class LocationListDTO
{

    public static function validateData()
    {
        return [
            'Location_Name' => 'string|max:250',
            'OnlyHotels' => 'in:' . implode(',', LocationOnlyHotels::validValues()),
        ];
    }

    public function __construct(
        public ?string $Location_Name,
        public ?int $OnlyHotels
    ) {
        $this->Location_Name = $Location_Name ?? '';
        $this->OnlyHotels = $OnlyHotels ?? LocationOnlyHotels::VALUE_FALSE;
    }
}
