public static ReflectionObject __construct(Env env, Value val)
{
if (! val.isObject())
throw new ReflectionException("parameter must be an object");
ObjectValue obj = (ObjectValue) val.toObject(env);
return new ReflectionObject(obj.getQuercusClass());
}