<?php

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


class AnalyticAgencyListMonthDTO
{
	public static function validateData()
	{
		return [
			"DateStart" => "required|date",
			"DateEnd"   => "required|date|after_or_equal:DateStart",
			"Filter"	=> "required|string|in:DATE-BOOKING,DATE-TOUR",
			"Group"     => "required|string|in:NONE,CHANNEL,AGENCY,NATIONALITY,CATEGORY,TOUR,PACKAGE,AGE",
			"View"      => "required|string|in:RANKING,SPECIFIC",
			"Id"        => "array",
			"Export"	=> "required|boolean"
		];
	}

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