title: How to iterate through PHP object?
body: <p>I'm using paymill to process payments and this is the object returned from their PHP:</p>
  
  <pre><code>__PHP_Incomplete_Class Object
  (
      [__PHP_Incomplete_Class_Name] =&gt; Paymill\Models\Response\Transaction
      [_amount:Paymill\Models\Response\Transaction:private] =&gt; 001
      [_originAmount:Paymill\Models\Response\Transaction:private] =&gt; 1
      [_status:Paymill\Models\Response\Transaction:private] =&gt; closed
      [_description:Paymill\Models\Response\Transaction:private] =&gt; 1188 1387851784
      [_livemode:Paymill\Models\Response\Transaction:private] =&gt; 
      [_refunds:Paymill\Models\Response\Transaction:private] =&gt; 
      [_currency:Paymill\Models\Response\Transaction:private] =&gt; EUR
      [_responseCode:Paymill\Models\Response\Transaction:private] =&gt; 20000
      [_shortId:Paymill\Models\Response\Transaction:private] =&gt; 7357.7357.7357
      [_invoices:Paymill\Models\Response\Transaction:private] =&gt; Array
          (
          )
  
      [_payment:Paymill\Models\Response\Transaction:private] =&gt; __PHP_Incomplete_Class Object
          (
              [__PHP_Incomplete_Class_Name] =&gt; Paymill\Models\Response\Payment
              [_type:Paymill\Models\Response\Payment:private] =&gt; creditcard
              [_client:Paymill\Models\Response\Payment:private] =&gt; client_3cedc288233ed43c9bbb
              [_cardType:Paymill\Models\Response\Payment:private] =&gt; visa
              [_country:Paymill\Models\Response\Payment:private] =&gt; 
              [_expireMonth:Paymill\Models\Response\Payment:private] =&gt; 12
              [_expireYear:Paymill\Models\Response\Payment:private] =&gt; 2015
              [_cardHolder:Paymill\Models\Response\Payment:private] =&gt; test
              [_lastFour:Paymill\Models\Response\Payment:private] =&gt; 1228
              [_code:Paymill\Models\Response\Payment:private] =&gt; 
              [_account:Paymill\Models\Response\Payment:private] =&gt; 
              [_holder:Paymill\Models\Response\Payment:private] =&gt; 
              [_id:protected] =&gt; pay_2590c4d2f832a5d8bab1776f
              [_createdAt:protected] =&gt; 1385259786
              [_updatedAt:protected] =&gt; 1385259792
              [_appId:protected] =&gt; 
          )
  
      [_client:Paymill\Models\Response\Transaction:private] =&gt; __PHP_Incomplete_Class Object
          (
              [__PHP_Incomplete_Class_Name] =&gt; Paymill\Models\Response\Client
              [_email:Paymill\Models\Response\Client:private] =&gt; 
              [_description:Paymill\Models\Response\Client:private] =&gt; 
              [_payment:Paymill\Models\Response\Client:private] =&gt; Array
                  (
                  )
  
              [_subscription:Paymill\Models\Response\Client:private] =&gt; 
              [_id:protected] =&gt; client_3cedc288233ed43c9bbb
              [_createdAt:protected] =&gt; 1385259792
              [_updatedAt:protected] =&gt; 1385259792
              [_appId:protected] =&gt; 
          )
  
      [_preauthorization:Paymill\Models\Response\Transaction:private] =&gt; 
      [_fees:Paymill\Models\Response\Transaction:private] =&gt; Array
          (
          )
  
      [_feeAmount:Paymill\Models\Response\Transaction:private] =&gt; 
      [_feePayment:Paymill\Models\Response\Transaction:private] =&gt; 
      [_id:protected] =&gt; tran_d1a44121f123d0846839197ac0ce
      [_createdAt:protected] =&gt; 1385259792
      [_updatedAt:protected] =&gt; 1385259792
      [_appId:protected] =&gt; 
  )
  </code></pre>
  
  <p>How can I iterate through this object to get stuff like client, responseCode, originAmount, etc?</p>
  
  <p><strong>EDIT</strong> <a href="https://github.com/paymill/paymill-php" rel="nofollow">Here's the PHP code I'm using</a></p>