Casts objects to arrays and adds the dynamic property prefix.
public static castObject ( object $obj, ReflectionClass $reflector ) : array | ||
$obj | object | The object to cast |
$reflector | ReflectionClass | The class reflector to use for inspecting the object definition |
Résultat | array | The array-cast of the object, with prefixed dynamic properties |