public static function getPrimitiveTypeOf($instance)
    {
        $phpType = gettype($instance);

        if (isset(self::$phpToJson[$phpType])) {
            return self::$phpToJson[$phpType];
        }

        throw new UnsupportedTypeException($phpType);
    }
public static function getPrimitiveTypeOf($instance)
    {
        $phpType = gettype($instance);

        if (isset(self::$phpToJson[$phpType])) {
            return self::$phpToJson[$phpType];
        }

        throw new UnsupportedTypeException($phpType);
    }
public static function getPrimitiveTypeOf ( $ instance ) { $ phpType = gettype ( $ instance ) ; if ( isset ( self :: $ phpToJson [ $ phpType ] ) ) { return self :: $ phpToJson [ $ phpType ] ; } throw new UnsupportedTypeException ( $ phpType ) ; }
Returns the type of an instance according to JSON Schema Core 3.5.

@param mixed $instance

@return string

@throws UnsupportedTypeException
Returns the type of an instance according to JSON Schema Core 3 . 5 .