title: Looping trough a protected SendinBlue object
body: <p>i have succesfully integrated the SendinBlue v3 API into my codeigniter application, but for some reason i'm unable to loop trough the results when using the API.</p>
  <p>When i var_dump, my object looks like this :</p>
  <pre><code> object(SendinBlue\Client\Model\GetEmailCampaigns)#110 (1) {
        [&quot;container&quot;:protected]=&gt;
        array(2) {
          [&quot;campaigns&quot;]=&gt;
          array(2) {
            [0]=&gt;
            array(23) {
              [&quot;id&quot;]=&gt;
              int(2)
              [&quot;name&quot;]=&gt;
              string(12) &quot;Testcampagne&quot;
              [&quot;type&quot;]=&gt;
      .....
  </code></pre>
  <p>Since the root object is protected , i'm not able to loop trough this to see my campaigns.
  I was able to read it by converting it to an array  , $result = (array)$result;
  and then i had to use</p>
  <pre><code>foreach ($result as $campaigns)
  {
      foreach ($campaigns as $campaignh)
      {
           foreach ((array)$campaignh as $campaign)
           {
               echo $campaign['status'];
  ....    
  </code></pre>
  <p>I'm sure there must be a way to loop trough the campaigns in one single foreach? Feeling really stupid about this!</p>
  <p>Thank you!</p>