protected function getType($rules)
	{
		foreach ($rules as $key => $rule) {
			$parsedRule = $this->parseValidationRule($rule);
			if(in_array($parsedRule['name'], $this->numericRules))
			{
				return 'numeric';
			}
		}

		return 'string';
	}
protected function getType($rules)
	{
		foreach ($rules as $key => $rule) {
			$parsedRule = $this->parseValidationRule($rule);
			if(in_array($parsedRule['name'], $this->numericRules))
			{
				return 'numeric';
			}
		}

		return 'string';
	}
protected function getType ( $ rules ) { foreach ( $ rules as $ key => $ rule ) { $ parsedRule = $ this -> parseValidationRule ( $ rule ) ; if ( in_array ( $ parsedRule [ 'name' ] , $ this -> numericRules ) ) { return 'numeric' ; } } return 'string' ; }
Get all rules and return type of input if rule specifies type
Now, just for numeric

@return string
Get all rules and return type of input if rule specifies type Now just for numeric