title: Get string within protected object
body: <p>I am trying to get the the string "this info" inside this object lets call it <code>$object</code>, but data is protected, how can I access that pocket?</p>
  
  <pre><code>    object(something)#29 (1) {
    ["_data":protected]=&gt;
    array(10) {
      ["Id"]=&gt;
      array(1) {
        [0]=&gt;
        string(8) "this info"
      }
      ["SyncToken"]=&gt;
      array(1) {
        [0]=&gt;
        string(1) "0"
      }
      ["MetaData"]=&gt;
      array(1) {
  </code></pre>
  
  <p>Obviously <code>$object-&gt;_data</code> gives me an error<code>Cannot access protected property</code></p>