title: PHP multiple object function calls
body: <p>This maybe a silly question.</p>
  
  <p>I am trying to understand how these series of object calls are made. Example in Laravel eloquent method
  <a href="http://laravel.com/docs/eloquent" rel="nofollow">http://laravel.com/docs/eloquent</a></p>
  
  <pre><code>$affectedRows = User::where('votes', '&gt;', 100)-&gt;update(array('status' =&gt; 2));
  </code></pre>
  
  <p>I am trying to create a custom framework, and i like the idea of the Laravel framework. 
  Can someone please tell me what it is and how to achieve this.</p>