private function validateType($type)
    {
        if (!in_array($type, self::$validTypes)) {
            throw new InvalidMappingException(
                'Invalid uploadable field type reference. Must be one of: '.implode(', ', self::$validTypes)
            );
        }
    }
private function validateType($type)
    {
        if (!in_array($type, self::$validTypes)) {
            throw new InvalidMappingException(
                'Invalid uploadable field type reference. Must be one of: '.implode(', ', self::$validTypes)
            );
        }
    }
private function validateType ( $ type ) { if ( ! in_array ( $ type , self :: $ validTypes ) ) { throw new InvalidMappingException ( 'Invalid uploadable field type reference. Must be one of: ' . implode ( ', ' , self :: $ validTypes ) ) ; } }
Validate the given type of file field.

@param string $type

@return void
Validate the given type of file field .