MAKS\AmqpAgent\Helper\ArrayProxyTrait::castObjectToArray
Converts (casts) an object to an associative array.
Signature
Parameters
$object
— object- The object to convert.
$useJson
— boolean- [optional] Whether to use json_decode/json_encode to cast the object, default is via reflection.
Returns
- array
- The result array.