original_string: public static function getInstance($name = 'default')
      {
          if (isset(static::$instances[$name])) {
              return static::$instances[$name];
          }
  
          $instance = new static();
  
          static::$instances[$name] = $instance;
  
          return $instance;
      }
code: public static function getInstance($name = 'default')
      {
          if (isset(static::$instances[$name])) {
              return static::$instances[$name];
          }
  
          $instance = new static();
  
          static::$instances[$name] = $instance;
  
          return $instance;
      }
code_tokens: public static function getInstance ( $ name = 'default' ) { if ( isset ( static :: $ instances [ $ name ] ) ) { return static :: $ instances [ $ name ] ; } $ instance = new static ( ) ; static :: $ instances [ $ name ] = $ instance ; return $ instance ; }
docstring: Get the current instance.
  
  @param  string  $name
  @return static
docstring_tokens: Get the current instance .