title: return data with chain static method
body: <p>i'm trying to return data with chain static method , but i can't because the method return one thing only .</p>
  
  <pre><code>class Input
  {
          public static function set($input)
          {
                $data = $input;
                $class = get_class();
                return $data;
                return self::$class = new $class;
          }
          public static function get()
          {
               echo ' - get method';
          }
  }
  
  Input::set('ahmed')-&gt;get();
  </code></pre>
  
  <p>but it's only print " -get method " </p>