src/Net/Rest/Pool.php
public static function getInstance($label = 'default')
    {
      $instance = null;

      if(!isset(self::$instances[$label]))
      {
          // Create new Client
          $client = new Client();

          // Save the instance
          self::$instances[$label] = $client;
      }

      $instance = self::$instances[$label];

      return $instance;
    }
public static function getInstance($label = 'default')
    {
      $instance = null;

      if(!isset(self::$instances[$label]))
      {
          // Create new Client
          $client = new Client();

          // Save the instance
          self::$instances[$label] = $client;
      }

      $instance = self::$instances[$label];

      return $instance;
    }
public static function getInstance ( $ label = 'default' ) { $ instance = null ; if ( ! isset ( self :: $ instances [ $ label ] ) ) { // Create new Client $ client = new Client ( ) ; // Save the instance self :: $ instances [ $ label ] = $ client ; } $ instance = self :: $ instances [ $ label ] ; return $ instance ; }
Return an instance of a LibX\Net\Rest\Client with a specific label

@param string $label
@return \LibX\Net\Rest\Client
Return an instance of a LibX \ Net \ Rest \ Client with a specific label