protected function getValidatorType($type)
    {
        switch ($type) {
            case 'int':
                $type = 'Integer';
                break;
            case 'bool':
                $type = 'Boolean';
                break;
            case 'double':
                $type = 'Float';
                break;
            case 'numeric':
                $type = 'Number';
                break;
            case 'mixed':
                $type = 'Raw';
                break;
            default:
                $type = ucfirst($type);
        }
        return $type;
    }
protected function getValidatorType($type)
    {
        switch ($type) {
            case 'int':
                $type = 'Integer';
                break;
            case 'bool':
                $type = 'Boolean';
                break;
            case 'double':
                $type = 'Float';
                break;
            case 'numeric':
                $type = 'Number';
                break;
            case 'mixed':
                $type = 'Raw';
                break;
            default:
                $type = ucfirst($type);
        }
        return $type;
    }
protected function getValidatorType ( $ type ) { switch ( $ type ) { case 'int' : $ type = 'Integer' ; break ; case 'bool' : $ type = 'Boolean' ; break ; case 'double' : $ type = 'Float' ; break ; case 'numeric' : $ type = 'Number' ; break ; case 'mixed' : $ type = 'Raw' ; break ; default : $ type = ucfirst ( $ type ) ; } return $ type ; }
Used to map PHP types to validator types.

@param string $type Data type to unify
@return string unified data type
Used to map PHP types to validator types .