src/Rxnet/Contract/DataContainerTrait.php
protected function toStdClass($data)
    {
        if (is_array($data) || $data instanceof \ArrayObject) {
            $data = json_decode(json_encode($data));
        }
        return $data;
    }
protected function toStdClass($data)
    {
        if (is_array($data) || $data instanceof \ArrayObject) {
            $data = json_decode(json_encode($data));
        }
        return $data;
    }
protected function toStdClass ( $ data ) { if ( is_array ( $ data ) || $ data instanceof \ ArrayObject ) { $ data = json_decode ( json_encode ( $ data ) ) ; } return $ data ; }
Transform array or array object to json compatible stdClass
@param $data
@return mixed
Transform array or array object to json compatible stdClass