ReflectionObject can takes class names as well as objects