title: passing variable into class functions and use it
body: <p>i got one class and i'm trying to implement it into my website, but i'm unable to pass variable into it...</p>
  
  <pre><code>class Order {
  
     var $totalPrice = null;
  
     function load() {
        $this-&gt;totalPrice = 123;
     }
  
     function loadByPaymentSessionId($paymentSessionId) {
         $this-&gt;totalPrice = 123;
     }
  }
  
  $order = new Order();
  $order-&gt;load();
  </code></pre>
  
  <p>How can i set $this->totalPrice outside of class?</p>