title: how to factoring/group php methods
body: <p>I've got a PHP class which contains different methods:</p>
  
  <pre><code>namespace App\Controllers;
  
  class SuperAdminController extends Controller {
  
    public function name1Action($wanted = ''){
      $o = new name1Controller();
      self::routeWanted($wanted,$o,$this);
    }
     ...
    public function name10Action($wanted = ''){
      $o = new name10Controller();
      self::routeWanted($wanted,$o,$this);
    }
  
    private function routeWanted($wanted,$o,$that){
      switch($wanted){
        do something...
      }
    }
  
  }
  </code></pre>
  
  <p>How can I group all my public function as one function like </p>
  
  <pre><code>public function name1Action ... name10Action($wanted = ''){
      $o = new name1Controller();
      self::routeWanted($wanted,$o,$this);
  } 
  </code></pre>