original_string: public function getConnection($login) {
  
          if (isset($this->servers[$login])) {
              if (!isset($this->connections[$login])) {
                  $conf = $this->servers[$login];
                  $this->connections[$login] = Connection::factory($conf['host'], $conf['port'], 1, $conf['user'], $conf['password']);
              }
  
              return $this->connections[$login];
          }
          return null;
      }
code: public function getConnection($login) {
  
          if (isset($this->servers[$login])) {
              if (!isset($this->connections[$login])) {
                  $conf = $this->servers[$login];
                  $this->connections[$login] = Connection::factory($conf['host'], $conf['port'], 1, $conf['user'], $conf['password']);
              }
  
              return $this->connections[$login];
          }
          return null;
      }
code_tokens: public function getConnection ( $ login ) { if ( isset ( $ this -> servers [ $ login ] ) ) { if ( ! isset ( $ this -> connections [ $ login ] ) ) { $ conf = $ this -> servers [ $ login ] ; $ this -> connections [ $ login ] = Connection :: factory ( $ conf [ 'host' ] , $ conf [ 'port' ] , 1 , $ conf [ 'user' ] , $ conf [ 'password' ] ) ; } return $ this -> connections [ $ login ] ; } return null ; }
docstring: Connects to the dedicated server API, if connection already established will send existing connextion
  
  @param string $login Server to connect to
  
  @return Connection
docstring_tokens: Connects to the dedicated server API if connection already established will send existing connextion