public function getValidationRules(?string $lang = null): array 	{ 		$required = $this->required ? 'required' : 'nullable'; 		$min = $this->min ?? 0; 		$max = $this->max ?? 500;  		switch ($this->type) { 			case self::FILTER_TYPE_NUMBER: 			case self::FILTER_TYPE_RANGE:  				return [$required, $this->step ? 'numeric' : 'integer', 'min:' . $min, 'max:' . ($this->max ?? PHP_INT_MAX)];  			case self::FILTER_TYPE_EMAIL:  				return [$required, 'email', 'min:' . $min, 'max:' . $max];  			case self::FILTER_TYPE_URL:  				return [$required, 'url', 'min:' . $min, 'max:' . $max];  			case self::FILTER_TYPE_SELECT:  				return [$required, Rule::in($this->getFilterValue($lang))];  			default:  				return [$required, 'string', 'min:' . $min, 'max:' . $max]; 		} 	}