My object received to variable $data from an API looks like this:
        Data Object
        (
            [serviceContext:DataService:private] => ServiceContext Object
                (
                    [info1] => abcde
                    [serviceType] => 123
                 )
        )
I want to retrive info1
I tried echo $data->serviceContext:DataService:private;
but that seems to be a syntax error caused by the :
I tried echo $data->serviceContext->info1; which results in:
PHP Fatal error:  Cannot access private property Data::$serviceContext 
What's the correct way to retrieve the elements? Thank you
