title: use a function after a function PHP OOP
body: <p>i have a simple question in OOP</p>
  
  <p>I've see in a lot of frameworks like Laravel something like this :</p>
  
  <pre><code>$data = Model::OrderBy('id','desc')-&gt;skip(5)-&gt;take(10)-&gt;get()-&gt;toArray();
  </code></pre>
  
  <p>My Question is, how can i can call a function after another function ?</p>
  
  <p>Exemple :</p>
  
  <pre><code>class test{
  
  public function test1(){}
  public function test2(){}
  
  }
  </code></pre>
  
  <p>how i can call the function test 2 after test 1 like that <code>test1()-&gt;test2()</code></p>
  
  <p>i hope the question is clear</p>