LdapTools\Connection\LastErrorStrategy::__construct PHP Method

__construct() public method

public __construct ( resource $connection )
$connection resource
    public function __construct($connection)
    {
        $this->connection = $connection;
        if (defined('LDAP_OPT_DIAGNOSTIC_MESSAGE')) {
            $this->diagnosticOpt = 'LDAP_OPT_DIAGNOSTIC_MESSAGE';
        }
    }