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