title: Accessing Order Items protected data in Woocommerce 3
body: <p>I am trying to get the line items of an order. </p>
  
  <p>I'm doing this:</p>
  
  <pre><code>$order = new WC_Order(147);
  foreach ($order-&gt;get_items() as $key =&gt; $lineItem) {
      print_r('&lt;pre&gt;----');
      print_r($lineItem);
      print_r('----&lt;/pre&gt;');
  }
  </code></pre>
  
  <p>I can see all the data I need but the array shows this:</p>
  
  <pre><code>[meta_data:protected] =&gt; Array
  </code></pre>
  
  <p>How can I access this array to get the values?</p>
  
  <p>Thanks.</p>