static array
castObject(object $obj, ReflectionClass $reflector)
Casts objects to arrays and adds the dynamic property prefix.
Parameters object $obj The object to cast ReflectionClass $reflector The class reflector to use for inspecting the object definition Return Value array The array-cast of the object, with prefixed dynamic properties