Hello I've a respone object from outsource and I need to reach sub elements of the object.
Here is response I have :
object(Iyzipay\Model\Payment)#13 (32) {
  ["price":"Iyzipay\Model\PaymentResource":private]=>
  NULL
  ["paidPrice":"Iyzipay\Model\PaymentResource":private]=>
  NULL
  ["locale":"Iyzipay\IyzipayResource":private]=>
  string(2) "tr"
  ["systemTime":"Iyzipay\IyzipayResource":private]=>
  int(1568548407994)
  ["conversationId":"Iyzipay\IyzipayResource":private]=>
  string(13) "***_46_25"
  ["rawResult":"Iyzipay\ApiResource":private]=>
  string(156) "{"status":"failure","errorCode":"12","errorMessage":"Kart numarası geçersizdir","locale":"tr","systemTime":1568548407994,"conversationId":"***_46_25"}"
}
Here is php code :
$payment = \Iyzipay\Model\Payment::create($request, Config::options());
I have to reach elements like $payment->rawResult or $payment->price etc.
However I try lots of things to reach it but there is no way. Probably I don't know the reaching issue about object. Is there anyone know ?
I will interpret the response with make subobject as variable. Also I tried to make array from this object but there is no way too.
 
    