<?php

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


class AnalyticBookingListMonthDTO
{
	public static function validateData()
	{
		return [
			'DateStart' => 'required|date',
			'DateEnd'   => 'required|date|after_or_equal:DateStart',
			'Type'		=> 'required|string|in:CONFIRM,TOUR',
			'Group'     => 'required|string|in:NONE,NATIONALITY',
			'View'      => 'required|string|in:RANKING,STACKED,SPECIFIC',
			'Id'        => 'array',
			'Id.*'      => 'integer'
		];
	}

	public function __construct(
		public string $DateStart,
		public string $DateEnd,
		public string $Type,
		public string $Group,
		public string $View,
		public ?array $Id
	) {}
}
