protected function getTypeOfInput($rulesOfInput)
    {
        foreach ($rulesOfInput as $key => $rule) {
            $parsedRule = $this->parseValidationRule($rule);

            if (in_array($parsedRule['name'], static::$numericRules)) {
                return 'numeric';
            } elseif ($parsedRule['name'] === 'array') {
                return 'array';
            } elseif (in_array($parsedRule['name'], static::$fileRules)) {
                return 'file';
            }
        }

        return 'string';
    }
protected function getTypeOfInput($rulesOfInput)
    {
        foreach ($rulesOfInput as $key => $rule) {
            $parsedRule = $this->parseValidationRule($rule);

            if (in_array($parsedRule['name'], static::$numericRules)) {
                return 'numeric';
            } elseif ($parsedRule['name'] === 'array') {
                return 'array';
            } elseif (in_array($parsedRule['name'], static::$fileRules)) {
                return 'file';
            }
        }

        return 'string';
    }
protected function getTypeOfInput ( $ rulesOfInput ) { foreach ( $ rulesOfInput as $ key => $ rule ) { $ parsedRule = $ this -> parseValidationRule ( $ rule ) ; if ( in_array ( $ parsedRule [ 'name' ] , static :: $ numericRules ) ) { return 'numeric' ; } elseif ( $ parsedRule [ 'name' ] === 'array' ) { return 'array' ; } elseif ( in_array ( $ parsedRule [ 'name' ] , static :: $ fileRules ) ) { return 'file' ; } } return 'string' ; }
Get all rules and return type of input if rule specifies type

@param array
@return string
Get all rules and return type of input if rule specifies type