LdapTools\Connection\LdapServerPool::__construct PHP Method

__construct() public method

public __construct ( DomainConfiguration $config, TcpSocket $tcp = null, Dns $dns = null )
$config LdapTools\DomainConfiguration
$tcp LdapTools\Utilities\TcpSocket
$dns LdapTools\Utilities\Dns
    public function __construct(DomainConfiguration $config, TcpSocket $tcp = null, Dns $dns = null)
    {
        $this->config = $config;
        $this->tcp = $tcp ?: new TcpSocket();
        $this->dns = $dns ?: new Dns();
    }