Set $name and $class properties in reflection to "public"