public function getResource(): ?LDAPConnection
{ return $this->connection;
} /**
* @return void
*/
public function setOption(string
$name, array|string|int|bool
$value) { if (!@
ldap_set_option($this->connection, ConnectionOptions::
getOption($name),
$value)) { throw new LdapException(sprintf('Could not set value "%s" for option "%s".',
$value,
$name));
} } /**
* @return array|string|int|null
*/
public function getOption(string
$name) { if (!@
ldap_get_option($this->connection, ConnectionOptions::
getOption($name),
$ret)) { throw new LdapException(sprintf('Could not retrieve value for option "%s".',
$name));
}