Ejemplo n.º 1
0
        public static string get_class(PhpValue @object)
        {
            var obj = @object.AsObject();

            if (obj == null || obj is PhpResource)
            {
                // TODO: Warning: get_class() expects parameter 1 to be object, {PhpVariable.GetTypeName(@object)} given
                PhpException.InvalidArgumentType(nameof(@object), PhpVariable.TypeNameObject);
                return(null); // FALSE
            }

            return(PhpVariable.GetClassName(obj));
        }