src/LdapTools/Connection/BindUserStrategy.php
public static function getInstance(DomainConfiguration $config)
    {
        if (LdapConnection::TYPE_AD == $config->getLdapType()) {
            return new ADBindUserStrategy($config);
        } else {
            return new self($config);
        }
    }
public static function getInstance(DomainConfiguration $config)
    {
        if (LdapConnection::TYPE_AD == $config->getLdapType()) {
            return new ADBindUserStrategy($config);
        } else {
            return new self($config);
        }
    }
public static function getInstance ( DomainConfiguration $ config ) { if ( LdapConnection :: TYPE_AD == $ config -> getLdapType ( ) ) { return new ADBindUserStrategy ( $ config ) ; } else { return new self ( $ config ) ; } }
Given the LDAP type, determine the BindStrategy to use.

@param DomainConfiguration $config
@return ADBindUserStrategy|BindUserStrategy
Given the LDAP type determine the BindStrategy to use .