src/LdapTools/Connection/LdapServerPool.php
public function getServer()
    {
        $servers = $this->getSortedServersArray();

        foreach ($servers as $server) {
            if ($this->isServerAvailable($server)) {
                return $server;
            }
        }

        throw new LdapConnectionException('No LDAP server is available.');
    }
public function getServer()
    {
        $servers = $this->getSortedServersArray();

        foreach ($servers as $server) {
            if ($this->isServerAvailable($server)) {
                return $server;
            }
        }

        throw new LdapConnectionException('No LDAP server is available.');
    }
public function getServer ( ) { $ servers = $ this -> getSortedServersArray ( ) ; foreach ( $ servers as $ server ) { if ( $ this -> isServerAvailable ( $ server ) ) { return $ server ; } } throw new LdapConnectionException ( 'No LDAP server is available.' ) ; }
Retrieve the first available LDAP server.

@return string
@throws LdapConnectionException
Retrieve the first available LDAP server .