protected function addServer(string $type, Server $server)
    {
        switch ($type) {
            case 'master':
                $this->servers['master'] = ['server' => $server, 'connection' => null];

                break;
            default:
                $serverHashId = spl_object_hash($server);

                if (!isset($this->servers[$type][$serverHashId])) {
                    $this->servers[$type][$serverHashId] = ['server' => $server, 'connection' => null];
                }

                break;
        }
    }
protected function addServer(string $type, Server $server)
    {
        switch ($type) {
            case 'master':
                $this->servers['master'] = ['server' => $server, 'connection' => null];

                break;
            default:
                $serverHashId = spl_object_hash($server);

                if (!isset($this->servers[$type][$serverHashId])) {
                    $this->servers[$type][$serverHashId] = ['server' => $server, 'connection' => null];
                }

                break;
        }
    }
protected function addServer ( string $ type , Server $ server ) { switch ( $ type ) { case 'master' : $ this -> servers [ 'master' ] = [ 'server' => $ server , 'connection' => null ] ; break ; default : $ serverHashId = spl_object_hash ( $ server ) ; if ( ! isset ( $ this -> servers [ $ type ] [ $ serverHashId ] ) ) { $ this -> servers [ $ type ] [ $ serverHashId ] = [ 'server' => $ server , 'connection' => null ] ; } break ; } }
Adds a server to our list of servers

@param string $type The type of server we're trying to add, eg "master", "custom"
@param Server $server The server to add
Adds a server to our list of servers