<?php

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


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

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